I'm using the Jira Rest API to get issues a user can access. My goal is to limit the requested issues to the ones I need only. I only need Sub-Tasks which have an issuetype-id of 8.
Is there a possibility to limit the response to only provide issues with this issuetype-id (or name)?
This is my request so far
/rest/api/2/search?jql=assignee=currentuser()&fields=key,id,issuetype,project,subtasks,summary,status
(using Basic Authentication) which is working fine.
The Response looks like this:
{
"expand": "schema,names",
"startAt": 0,
"maxResults": 50,
"total": 42,
"issues": [
{
"expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
"id": "---",
"self": "...",
"key": "PROJECT-NR",
"fields": {
"summary": "TaskSummary",
"issuetype": {
"self": ".../rest/api/2/issuetype/8",
"id": "8",
"description": "The sub-task of the issue (IT)",
"iconUrl": "...avatarType=issuetype",
"name": "Sub-Task",
"subtask": true,
"avatarId": 14546
},
"project": {...},
"subtasks": [],
"status": {...}
}
}
},
{[...]
and so on...
Appreciate every help, thank you very much! 