Rest Issues » History » Version 2
Jean-Philippe Lang, 2010-01-18 21:01
filters added
1 | 1 | Jean-Philippe Lang | h1. Issues |
---|---|---|---|
2 | |||
3 | h2. Listing issues |
||
4 | |||
5 | GET /issues.xml |
||
6 | |||
7 | 2 | Jean-Philippe Lang | Returns a paginated list of issues. By default, it returns open issues only. |
8 | 1 | Jean-Philippe Lang | |
9 | +Parameters+: |
||
10 | |||
11 | * @page@: page number (optional) |
||
12 | 2 | Jean-Philippe Lang | |
13 | Optional filters: |
||
14 | |||
15 | * @project_id@: get issues from the project with the given id |
||
16 | * @tracker_id@: get issues from the tracker with the given id |
||
17 | * @status_id@: get issues with the given status id only (you can use @*@ to get open and closed issues) |
||
18 | * ... |
||
19 | |||
20 | +Examples+: |
||
21 | |||
22 | <pre> |
||
23 | GET /issues.xml |
||
24 | GET /issues.xml?project_id=2 |
||
25 | GET /issues.xml?project_id=2&tracker_id=1 |
||
26 | </pre> |
||
27 | 1 | Jean-Philippe Lang | |
28 | +Response+: |
||
29 | |||
30 | <pre> |
||
31 | <?xml version="1.0" encoding="UTF-8"?> |
||
32 | <issues type="array" count="1640"> |
||
33 | <issue id="4326"> |
||
34 | <project name="Redmine" id="1"/> |
||
35 | <tracker name="Feature" id="2"/> |
||
36 | <status name="New" id="1"/> |
||
37 | <priority name="Normal" id="4"/> |
||
38 | <author name="John Smith" id="10106"/> |
||
39 | <category name="Email notifications" id="9"/> |
||
40 | <subject> |
||
41 | Aggregate Multiple Issue Changes for Email Notifications |
||
42 | </subject> |
||
43 | <description> |
||
44 | This is not to be confused with another useful proposed feature that |
||
45 | would do digest emails for notifications. |
||
46 | </description> |
||
47 | <start_date>2009-12-03</start_date> |
||
48 | <due_date></due_date> |
||
49 | <done_ratio>0</done_ratio> |
||
50 | <estimated_hours></estimated_hours> |
||
51 | <custom_fields> |
||
52 | <custom_field name="Resolution" id="2">Duplicate</custom_field> |
||
53 | <custom_field name="Texte" id="5">Test</custom_field> |
||
54 | <custom_field name="Boolean" id="6">1</custom_field> |
||
55 | <custom_field name="Date" id="7">2010-01-12</custom_field> |
||
56 | </custom_fields> |
||
57 | <created_on>Thu Dec 03 15:02:12 +0100 2009</created_on> |
||
58 | <updated_on>Sun Jan 03 12:08:41 +0100 2010</updated_on> |
||
59 | </issue> |
||
60 | <issue id="4325"> |
||
61 | ... |
||
62 | </issue> |
||
63 | </issues> |
||
64 | </pre> |
||
65 | |||
66 | h2. Showing an issue |
||
67 | |||
68 | GET /issues/[id].xml |
||
69 | |||
70 | h2. Creating an issue |
||
71 | |||
72 | POST /issues.xml |
||
73 | |||
74 | h2. Updating an issue |
||
75 | |||
76 | PUT /issues/[id].xml |
||
77 | |||
78 | h2. Deleting an issue |
||
79 | |||
80 | DELETE /issues/[id].xml |