Skip to content

vmindru/rt-create-ticket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

NAME: rt-create-ticket

DESCRIPTION:

This script will create a new ticket in RT from command line. You must make sure you have installed
rtkit and optpars before proceding.  


USAGE:

Make sure you have a kerberos ticket before you run the script
rt-create-ticket --help 

e.g. 

create new ticket with owner and requestor vmindru@redhat.com  @ http://localhost/API
    rt-create-ticket -s "add new feature to rt-ticket-create" -S open -r vmindru@redhat.com -o vmindru@redhat.com -u http://localhost/API


you can set up requestor,owner,RT API URL and defautl ticket status creation as ENV variables 
RT_QUEUE - specify default queue where to create tickets
RT_API_URL - default URL to communicate to RT
RT_STATUS - default status when creating a new ticket e.g. open or new
RT_REQUESTOR - specify email of requestor, defaults to $USER+'@redhat.com'


INSTALL:

1) Fetch the script
# git clone https://github.com/vmindru/rt-create-ticket

2)  cp rt-create-ticket under $HOME/bin/ or uder /usr/bin
# cp rt-create-ticket $HOME/bin/

3) install rtkit adn KERB auth
# pip install urllib2_kerberos python-rtkit


About

Create ticket from command line.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages