As per the documentation of this API call we should receive an output which contains the list of issue types under a scheme, but when I make the same call it only returns the self object and no issue types:
Call: https://docs.atlassian.com/software/jira/docs/api/REST/9.4.0/#api/2/issuetypescheme-getIssueTypeScheme
Output recevied:
{ "expand": "defaultIssueType,issueTypes", "self": "https://jira-test-aws.mathworks.com/rest/api/2/issuetypescheme/20501", "id": "20501", "name": "IT: Story+Task+Bug+X-Ray Type Scheme ", "description": "test " }
The scheme has 8 issue types and is being used for 19 projects, so as per the schema of the above API call we expected that the issue types information will be shown.
Has any one faced this issue?
I am an admin of the system and am making this GET call directly in the browser URL.
Hi @Khushal
try adding expand query parameter, expand=defaultIssueType,issueTypes
It should work this way
/rest/api/2/issuetypescheme/{schemeId}?expand=defaultIssueType,issueTypes
Thank you that worked exactly as I had hoped. Another question I had is that if there are similar query parameters to restrict?
For example: rest/api/2/project/{projectKey}
I only want the "components" and "versions" to be returned and not all the other attributes?
(I read that for issue search you can control by using the fields parameter, but what about other objects)
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.