YouTrack Standalone 7.0 Help

Get Issues in a Project

GET /issue/byproject/{project}

Get all issues by project

GET /rest/issue/byproject/{project}?{filter}&{after}&{max}&{updatedAfter}&{wikifyDescription}

Request parameters:

NameTypeDescription
projectprojectByIdForIssuesProjectID of a project to get issues from.
filterstringApply a filter to issues in a project.
afterIntegerA number of issues to skip before getting a list of issues. That is, when you specify, for example, after=12 in request, then in the response you will get all issues matching request but without first twelve issues found .
maxIntegerMaximum number of issues to be imported. If omitted, 10 issues will be imported, by default.
updatedAfterLongFilter issues by the date of the most recent update. Only issues imported after the specified date will be gotten.
wikifyDescriptionbooleanOptional. If '
true
', then issue description in the response should be formatted (that is: "wikified"). For example, the request URL with this parameter should look as follows: "/rest/issue/jt-23?wikifyDescription=true". By default, this parameter is 'false' and skipped in the URL.

Response parameters:
For information about meaning of tags in response, see Get an Issue method description.

Sample

Request

GET http://localhost:8081/rest/issue/byproject/TST?filter=%23Show-stopper Cookie: $Version=0; JSESSIONID=peji4aw1vkkj1fvtm9vev8hnh; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 1364 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <issues> <issue id="TST-2"> <field name="attachments"> <value url="/_persistent/user.properties?file=45-83&amp;v=0&amp;c=true">user.properties</value> <value url="/_persistent/foo1.properties?file=45-84&amp;v=0&amp;c=true">foo1.properties</value> <value url="/_persistent/foo2.properties?file=45-85&amp;v=0&amp;c=true">foo2.properties</value> </field> <field name="Priority"> <value>Show-stopper</value> </field> <field name="Type"> <value>Feature</value> </field> <field name="State"> <value>Reopened</value> </field> <field name="Assignee"> <value>beto</value> </field> <field name="Subsystem"> <value>UI</value> </field> <field name="Affected versions"> <value>2.0.1</value> </field> <field name="Fix versions"> <value>2.0.1</value> </field> <field name="projectShortName"> <value>TST</value> </field> <field name="numberInProject"> <value>2</value> </field> <field name="summary"> <value>new issue</value> </field> <field name="description"> <value>description of new issue</value> </field> <field name="created"> <value>1320664502969</value> </field> <field name="updated"> <value>1320664503229</value> </field> <field name="updaterName"> <value>app_exception</value> </field> <field name="reporterName"> <value>app_exception</value> </field> <field name="commentsCount"> <value>0</value> </field> <field name="votes"> <value>0</value> </field> </issue> </issues>
Last modified: 2 February 2017