Skip to content

Script for bulk upload tickets to request tracker from yaml file with validation

License

Notifications You must be signed in to change notification settings

detergen/yaml-to-rt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

v-0.1
Ruby script for bulck upload tickets to Bestpractical (https://bestpractical.com/) Request Tracker from yaml file with defined dependencies beetween tickets.

Requirements:
ruby 
kwalify http://www.kuwata-lab.com/kwalify/
logger 
rt cli http://requesttracker.wikia.com/wiki/CLI

Install:

- Clone repo localy

- Install gem kwalify (https://rubygems.org/gems/kwalify/versions/0.7.2)

- Create log directory
	mkdir log

- Copy example schema to schema.yml
	cp schema.yml.example schema.yml

- Make changes to schema.yml (add owners, queues existing in RT for validation) 

- Create yml file with your tickets (see test.yml for example). Where Ticket - local marks, just to define relations localy, script will substitute it with real RT ticket numbers after ticket creation on server.

Usage:

rt-ticket-chain.rb filename.yml

Script have try to do next:
- Verify filename.yml with schema.yml via kwalify.
- Create tickets via rt-cli interface (rt cli have to be installed) 
- Get real tickets numbers from server
- Create links beetween tickets 
- Log operations to /log/filename.yml.log (directory have to be created)

For dry run change correspondent option in config.yml to true.
Make changes to schema.yml and config.yml to add additional filds for ticket uploading.

TODO
- Add possibility to link with existing tickets
- More strong validation

About

Script for bulk upload tickets to request tracker from yaml file with validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages