fetching issues using filter on customfield

Is there any way to fetch issues using filter on customfield in new Rest APIs?

1 comment
Comment actions Permalink
Official comment


To to get a list of issues in a project with all their custom fields, their basic data, and the data of the current state, you can use a request like this:

curl -X GET \
'https://example.myjetbrains.com/youtrack/api/issues?query=project:FTP&fields=reporter%28login,name%29,idReadable,id,summary,description,fields%28id,projectCustomField%28id,field%28id,name%29%29,value%28id,isResolved,localizedName,name,text%29%29' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

The query parameter filters the list by project, and the fields request parameter requires to return the following attributes:
- reporter(login,name) - login and full name of the issue reporter
- idReadable,id - both database entity id ("2-7") of an issue and "human-readable" id of the issue in the project (e.g. SP-234).
- project(id,name,leader(login,name)) - basic project data
- summary,description - summary and description of the issue
- fields(id,projectCustomField(id,field(id,name)),value(color(id),id,isResolved,localizedName,name)) - custom fields of the issue with its current value.

Should you have any further questions, feel free to contact us.

Please sign in to leave a comment.