-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
43 lines (29 loc) · 1.33 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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