Skip to content

Commit 9bda169

Browse files
committed
Merging in jesperronn's documentation.
1 parent cc82d26 commit 9bda169

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.rdoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ This wraps the Trac XML-RPC plugin.
3131
trac.tickets.list # get all tickets
3232
trac.tickets.get 2334 # Get ticket #2334
3333

34+
Receive one single ticket
35+
36+
ticket = trac.tickets.get 9
37+
ticket.summary #=> 'foo'
38+
ticket.description #=> 'bar'
39+
40+
Scope the ticket
41+
42+
trac.tickets.list :include_closed => false
43+
44+
Create a new ticket
45+
46+
trac.tickets.create "summary", "description", :type => 'defect', :version => '1.0', :milestone => 'bug free' #=> 10
47+
48+
summary and description are required, the rest is optional. It can be one of the following: :severity, :milestone, :status, :type, :priority, :version, :reporter, :owner, :cc, :keywords
49+
50+
3451
=== Tickets
3552

3653
Trac's backbone is tickets. The Tickets class contains many useful methods, but can also run arbitrary queries against Trac using

0 commit comments

Comments
 (0)