Project

General

Profile

Rest Queries » History » Version 2

Jean-Philippe Lang, 2011-07-18 22:54
typo

1 1 Jean-Philippe Lang
h1. Queries
2
3
{{>toc}}
4
5 2 Jean-Philippe Lang
h2. /queries.:format
6 1 Jean-Philippe Lang
7
h3. GET
8
9
Returns the list of all custom queries visible by the user (public and private queries) for all projects.
10
11
+Examples+:
12
13
<pre>
14
GET /queries.xml
15
</pre>
16
17
+Response+:
18
19
<pre>
20
<?xml version="1.0" encoding="UTF-8"?>
21
<queries type="array" total_count="5" limit="25" offset="0">
22
  <query>
23
    <id>84</id>
24
    <name>Documentation issues</name>
25
    <is_public>true</is_public>
26
    <project_id>1</project_id>
27
  </query>
28
  <query>
29
    <id>1</id>
30
    <name>Open defects</name>
31
    <is_public>true</is_public>
32
    <project_id>1</project_id>
33
  </query>
34
</queries>
35
</pre>
36
37
Armed with a query id, you can get the corresponding issue list using:
38
39
<pre>
40
GET /issues.xml?query_id=:id
41
GET /projects/foo/issues.xml?query_id=:id
42
</pre>