Hello,
I’m trying to GET issueType and projects associated with it, however contrary to documentation, where “issuetype” request returns information about the project. I’m not getting this info.
Example from the documentation:
...
{
"self": "https://your-domain.atlassian.net/rest/api/2/issueType/1",
"id": "1",
"description": "A problem with the software.",
"iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
"name": "Bug",
"subtask": false,
"avatarId": 10002,
"entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
"hierarchyLevel": 0,
"scope": {
"type": "PROJECT",
"project": {
"id": "10000",
"key": "KEY",
"name": "Next Gen Project"
}
}
}
...
I’m not getting anything regarding “scope” and the fields I’m getting are:
- “self”
- “description”
- “iconUrl”
- “name”
- “subtask”
- “avatarId”
I know I can get issueTypes associated to the project using “GET /rest/api/2/project/”, but I want to get projects associated to issueTypes so later I could make a report:
IsueTypeID IssueTypeName NumberOfProjects(count)
How can this information be extracted?
Thanks in advance.