Hi,
I'm trying to get all issuetypes associated to an issuetype scheme, however, after using the endpoint provided on the docs for the API, I only get the "self", "id", "name" and "description" of the issuetype scheme.
Endpoint: /rest/api/2/issuetypescheme/{schemeId}
As mentioned in the docs, I'd like to get this result:
{ "expand": "defaultIssueType,issueTypes", "self": "http://localhost:8090/jira/rest/api/2/issuetypescheme/10100", "id": "10100", "name": "Some grouping of issue types for the greater good.", "description": "A brief explanation of this issue type scheme.", "defaultIssueType": { "self": "http://localhost:8090/jira/rest/api/2.0/issueType/3", "id": "3", "description": "A task that needs to be done.", "iconUrl": "http://localhost:8090/jira/images/icons/issuetypes/task.png", "name": "Task", "subtask": false, "avatarId": 1 }, "issueTypes": [ { "self": "http://localhost:8090/jira/rest/api/2.0/issuetype/1", "id": "1", "description": "a problem with the software.", "iconUrl": "http://localhost:8090/jira/image", "name": "bug", "subtask": false, "avatarId": 10002 }, { "self": "http://localhost:8090/jira/rest/api/2.0/issueType/3", "id": "3", "description": "A task that needs to be done.", "iconUrl": "http://localhost:8090/jira/images/icons/issuetypes/task.png", "name": "Task", "subtask": false, "avatarId": 1 } ] }
But this is what I get:
{"expand":"defaultIssueType,issueTypes","self":"http://<URL>/rest/api/2/issuetypescheme/10215","id":"10215","name":"JVT1SUP - Issue Type Schema","description":"JVT1SUP - Issue Type Schema"}
Do you know what I'm missing here?
Thank you in advance.
I've found the issue. In the query we need to pass this parameter "expand=schemes.issueTypes".
I miss that in the docs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.