Project

General

Profile

Actions

Rest Queries » History » Revision 1

Revision 1/3 | Next »
Jean-Philippe Lang, 2011-07-06 19:03


Queries

/:queries.:format

GET

Returns the list of all custom queries visible by the user (public and private queries) for all projects.

Examples:

GET /queries.xml

Response:

<?xml version="1.0" encoding="UTF-8"?>
<queries type="array" total_count="5" limit="25" offset="0">
  <query>
    <id>84</id>
    <name>Documentation issues</name>
    <is_public>true</is_public>
    <project_id>1</project_id>
  </query>
  <query>
    <id>1</id>
    <name>Open defects</name>
    <is_public>true</is_public>
    <project_id>1</project_id>
  </query>
</queries>

Armed with a query id, you can get the corresponding issue list using:

GET /issues.xml?query_id=:id
GET /projects/foo/issues.xml?query_id=:id

Updated by Jean-Philippe Lang over 13 years ago · 1 revisions