Hi Community,
I would like to get a list of IssueTypes except IssueTypes which correspond to the Subtask type. Currently we use
GET /rest/api/2/issuetype
Unfortunately this really delivers all types without filter. In Java there is a function in the REST API I couldn't find anything else.
Hello @Sebastian L.
But why do you want a sub-task filter in the issueType REST call when Atlassian provides the info whether the issueType is sub-task or not in the result of the rest call.
GET /rest/api/2/issuetype
{
"self": "http://localhost:8090/jira/rest/api/2.0/issueType/1",
"id": "1",
"description": "A problem with the software.",
"iconUrl": "http://localhost:8090/jira/images/icons/issuetypes/bug.png",
"name": "Bug",
"subtask": false,
"avatarId": 10002
}
Hence in the above result of the issueType you can see "sub-task" :false and thus you can easily ignore the sub-tasks from the results and store the result in a list of issueTYpes minus the sub-tasks based on the json result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.