Some notes on the cli excerpted from my work on a build doc
( Some config snips, scripts, and explanation on how to use RT's cli to create queues, tickets, users, and groups by script so as to make creating the test env easy and repeatable. )
#!/usr/bin/ruby -w
## Example:
## bin/rt create -t queue set name=NewestQ description="a newer still Q than thee"
test_queues = [
{ :qname => 'External', :qdesc => 'External ticket Queue for Rt testenv' },
{ :qname => 'Helpdesk', :qdesc => 'Helpdesk ticket Queue for Rt testenv' },
{ :qname => 'Oversight', :qdesc => 'Oversight ticket Queue for Rt testenv' },
]
test_queues.each { |tq|
`bin/rt create -t queue set name=\"#{tq[:qname]}\" description=\"#{tq[:qdesc]}\"`
}
and we should easily be able to do the same for some sample users, groups. Unfortunately we can't add scrips or templates this way, yet.
2 http://www.gossamer-threads.com/lists/rt/users/61505?do=post_view_threaded
( Some config snips, scripts, and explanation on how to use RT's cli to create queues, tickets, users, and groups by script so as to make creating the test env easy and repeatable. )
#!/usr/bin/ruby -w
## Example:
## bin/rt create -t queue set name=NewestQ description="a newer still Q than thee"
test_queues = [
{ :qname => 'External', :qdesc => 'External ticket Queue for Rt testenv' },
{ :qname => 'Helpdesk', :qdesc => 'Helpdesk ticket Queue for Rt testenv' },
{ :qname => 'Oversight', :qdesc => 'Oversight ticket Queue for Rt testenv' },
]
test_queues.each { |tq|
`bin/rt create -t queue set name=\"#{tq[:qname]}\" description=\"#{tq[:qdesc]}\"`
}
and we should easily be able to do the same for some sample users, groups. Unfortunately we can't add scrips or templates this way, yet.
2 http://www.gossamer-threads.com/lists/rt/users/61505?do=post_view_threaded