adric: books icon (c) 2004 adric.net (Default)
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

Profile

adric: books icon (c) 2004 adric.net (Default)
adric

November 2025

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526 2728 29
30      

Links

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 22 December 2025 10:18 am
Powered by Dreamwidth Studios