Rest Issues » History » Version 2

Jean-Philippe Lang, 2010-01-18 21:01
filters added

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