I am using Postman to make this request
Curl for the request -
curl --location 'https://api.atlassian.com/ex/jira/{{Cloud Id}}/rest/api/3/issue/createmeta/?projectIds=10225&expand=projects.issuetypes.fields&issuetypeIds=10003' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{Oauth Access Token}}'
Response:
{
"expand": "projects",
"projects": [
{
"expand": "issuetypes",
"self": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/project/10225",
"id": "10225",
"key": "ISD",
"name": "Integration Service Dummy",
"avatarUrls": {
"48x48": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/universal_avatar/view/type/project/avatar/10415",
"24x24": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/universal_avatar/view/type/project/avatar/10415?size=small",
"16x16": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/universal_avatar/view/type/project/avatar/10415?size=xsmall",
"32x32": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/universal_avatar/view/type/project/avatar/10415?size=medium"
},
"issuetypes": [
{
"self": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/issuetype/10003",
"id": "10003",
"description": "A user story. Created by Jira Software - do not edit or delete.",
"iconUrl": "{{Icon URL}}",
"name": "Story",
"untranslatedName": "Story",
"subtask": false,
"expand": "fields",
"fields": {
"issuetype": {
"required": true,
"schema": {
"type": "issuetype",
"system": "issuetype"
},
"name": "Issue Type",
"key": "issuetype",
"hasDefaultValue": false,
"operations": [],
"allowedValues": [
{
"self": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/issuetype/10003",
"id": "10003",
"description": "A user story. Created by Jira Software - do not edit or delete.",
"iconUrl": "{{Icon URL}}",
"name": "Story",
"subtask": false,
"hierarchyLevel": 0
}
]
},
"parent": {
"required": false,
"schema": {
"type": "issuelink",
"system": "parent"
},
"name": "Parent",
"key": "parent",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"project": {
"required": true,
"schema": {
"type": "project",
"system": "project"
},
"name": "Project",
"key": "project",
"hasDefaultValue": false,
"operations": [
"set"
],
"allowedValues": [
{
"self": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/project/10225",
"id": "10225",
"key": "ISD",
"name": "Integration Service Dummy",
"projectTypeKey": "software",
"simplified": false,
"avatarUrls": {
"48x48": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/universal_avatar/view/type/project/avatar/10415",
"24x24": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/universal_avatar/view/type/project/avatar/10415?size=small",
"16x16": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/universal_avatar/view/type/project/avatar/10415?size=xsmall",
"32x32": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/universal_avatar/view/type/project/avatar/10415?size=medium"
},
"projectCategory": {
"self": "https://api.atlassian.com/ex/jira/{{Cloud ID}}/rest/api/3/projectCategory/10010",
"id": "10010",
"description": "",
"name": "Other"
}
}
]
}
}
}
]
}
]
}
In this response, we are only getting 3 fields - issuetype, project & parent
Earlier we would get a list of all the fields (including custom fields) needed to create an issue in the response
If I make the same request using Basic Auth, I get a list of all the fields (including custom fields) needed to create the issue
Not sure of why this is happening
Can any setting changed in jira cause this issue?