Get project issuetype fields do not return reporter as field in response for my instance

ghanshyam September 5, 2022

I am using below api to get all the fields for issuetype 

https://mydomain.atlassian.net/rest/api/latest///issue/createmeta/?projectKeys=TJ1&issuetypeNames=Bug&expand=projects.issuetypes.fields

but when I am logged in to my jira account it will show reporter field while creating and issue don't know why it is happen.

any suggestion for this? 

 

 

 

1 answer

0 votes
Lukasz Grobelny
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2022

So the Reporter is missing?

ghanshyam September 5, 2022

yes

Lukasz Grobelny
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2022

But is this endpoint returning anything for you? 

ghanshyam September 5, 2022

yes this is the response with out reporter 

{
"expand": "projects",
"projects": [
{
"expand": "issuetypes",
"self": "https://mydomain.atlassian.net/rest/api/2/project/10023",
"id": "10023",
"key": "TJ1",
"name": "Test Jira 1",
"avatarUrls": {
"48x48": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10486",
"24x24": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10486?size=small",
"16x16": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10486?size=xsmall",
"32x32": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10486?size=medium"
},
"issuetypes": [
{
"self": "https://mydomain.atlassian.net/rest/api/2/issuetype/10010",
"id": "10010",
"description": "Bugs track problems or errors.",
"iconUrl": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium",
"name": "Bug",
"untranslatedName": "Bug",
"subtask": false,
"scope": {
"type": "PROJECT",
"project": {
"id": "10023"
}
},
"expand": "fields",
"fields": {
"summary": {
"required": true,
"schema": {
"type": "string",
"system": "summary"
},
"name": "Summary",
"key": "summary",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"parent": {
"required": false,
"schema": {
"type": "issuelink",
"system": "parent"
},
"name": "Parent",
"key": "parent",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"issuetype": {
"required": true,
"schema": {
"type": "issuetype",
"system": "issuetype"
},
"name": "Issue Type",
"key": "issuetype",
"hasDefaultValue": false,
"operations": [],
"allowedValues": [
{
"self": "https://mydomain.atlassian.net/rest/api/2/issuetype/10010",
"id": "10010",
"description": "Bugs track problems or errors.",
"iconUrl": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium",
"name": "Bug",
"subtask": false,
"avatarId": 10303,
"entityId": "9b4cb714-6f60-4d95-ad0d-83b08fe4639e",
"hierarchyLevel": 0
}
]
},
"issuerestriction": {
"required": false,
"schema": {
"type": "issuerestriction",
"system": "issuerestriction"
},
"name": "Restrict to",
"key": "issuerestriction",
"hasDefaultValue": false,
"operations": [
"set"
],
"allowedValues": []
},
"customfield_10060": {
"required": false,
"schema": {
"type": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
"customId": 10060
},
"name": "Enterprise Risk",
"key": "customfield_10060",
"hasDefaultValue": false,
"operations": [
"set"
],
"allowedValues": [
{
"self": "https://mydomain.atlassian.net/rest/api/2/customFieldOption/10007",
"value": "Low",
"id": "10007"
},
{
"self": "https://mydomain.atlassian.net/rest/api/2/customFieldOption/10008",
"value": "High",
"id": "10008"
},
{
"self": "https://mydomain.atlassian.net/rest/api/2/customFieldOption/10009",
"value": "Critical",
"id": "10009"
}
]
},
"customfield_10050": {
"required": false,
"schema": {
"type": "array",
"items": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes",
"customId": 10050
},
"name": "Flagged",
"key": "customfield_10050",
"hasDefaultValue": false,
"operations": [
"add",
"set",
"remove"
],
"allowedValues": [
{
"self": "https://mydomain.atlassian.net/rest/api/2/customFieldOption/10003",
"value": "Impediment",
"id": "10003"
}
]
},
"customfield_10061": {
"required": false,
"schema": {
"type": "number",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:float",
"customId": 10061
},
"name": "Risk Number",
"key": "customfield_10061",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"customfield_10062": {
"required": false,
"schema": {
"type": "string",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:textfield",
"customId": 10062
},
"name": "Additional Info",
"key": "customfield_10062",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"customfield_10063": {
"required": false,
"schema": {
"type": "date",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:datepicker",
"customId": 10063
},
"name": "Test",
"key": "customfield_10063",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"project": {
"required": true,
"schema": {
"type": "project",
"system": "project"
},
"name": "Project",
"key": "project",
"hasDefaultValue": false,
"operations": [
"set"
],
"allowedValues": [
{
"self": "https://mydomain.atlassian.net/rest/api/2/project/10023",
"id": "10023",
"key": "TJ1",
"name": "Test Jira 1",
"projectTypeKey": "software",
"simplified": true,
"avatarUrls": {
"48x48": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10486",
"24x24": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10486?size=small",
"16x16": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10486?size=xsmall",
"32x32": "https://mydomain.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10486?size=medium"
}
}
]
},
"description": {
"required": false,
"schema": {
"type": "string",
"system": "description"
},
"name": "Description",
"key": "description",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"customfield_10054": {
"required": false,
"schema": {
"type": "number",
"custom": "com.pyxis.greenhopper.jira:jsw-story-points",
"customId": 10054
},
"name": "Story point estimate",
"key": "customfield_10054",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"customfield_10011": {
"required": false,
"schema": {
"type": "any",
"custom": "com.pyxis.greenhopper.jira:gh-lexo-rank",
"customId": 10011
},
"name": "Rank",
"key": "customfield_10011",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"priority": {
"required": false,
"schema": {
"type": "priority",
"system": "priority"
},
"name": "Priority",
"key": "priority",
"hasDefaultValue": true,
"operations": [
"set"
],
"allowedValues": [
{
"self": "https://mydomain.atlassian.net/rest/api/2/priority/2",
"iconUrl": "https://mydomain.atlassian.net/images/icons/priorities/high.svg",
"name": "High",
"id": "2"
},
{
"self": "https://mydomain.atlassian.net/rest/api/2/priority/3",
"iconUrl": "https://mydomain.atlassian.net/images/icons/priorities/medium.svg",
"name": "Medium",
"id": "3"
},
{
"self": "https://mydomain.atlassian.net/rest/api/2/priority/4",
"iconUrl": "https://mydomain.atlassian.net/images/icons/priorities/low.svg",
"name": "Low",
"id": "4"
}
],
"defaultValue": {
"self": "https://mydomain.atlassian.net/rest/api/2/priority/2",
"iconUrl": "https://mydomain.atlassian.net/images/icons/priorities/high.svg",
"name": "High",
"id": "2"
}
},
"customfield_10058": {
"required": false,
"schema": {
"type": "datetime",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:datetime",
"customId": 10058
},
"name": "End Date",
"key": "customfield_10058",
"hasDefaultValue": true,
"operations": [
"set"
],
"defaultValue": 1662376817428
},
"labels": {
"required": false,
"schema": {
"type": "array",
"items": "string",
"system": "labels"
},
"name": "Labels",
"key": "labels",
"autoCompleteUrl": "https://mydomain.atlassian.net/rest/api/1.0/labels/suggest?query=",
"hasDefaultValue": false,
"operations": [
"add",
"set",
"remove"
]
},
"customfield_10059": {
"required": false,
"schema": {
"type": "array",
"items": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes",
"customId": 10059
},
"name": "Important",
"key": "customfield_10059",
"hasDefaultValue": false,
"operations": [
"add",
"set",
"remove"
],
"allowedValues": [
{
"self": "https://mydomain.atlassian.net/rest/api/2/customFieldOption/10005",
"value": "Yes",
"id": "10005"
},
{
"self": "https://mydomain.atlassian.net/rest/api/2/customFieldOption/10006",
"value": "No",
"id": "10006"
}
]
},
"attachment": {
"required": false,
"schema": {
"type": "array",
"items": "attachment",
"system": "attachment"
},
"name": "Attachment",
"key": "attachment",
"hasDefaultValue": false,
"operations": [
"set"
]
},
"issuelinks": {
"required": false,
"schema": {
"type": "array",
"items": "issuelinks",
"system": "issuelinks"
},
"name": "Linked Issues",
"key": "issuelinks",
"autoCompleteUrl": "https://mydomain.atlassian.net/rest/api/2/issue/picker?currentProjectId=&showSubTaskParent=true&showSubTasks=true&currentIssueKey=null&query=",
"hasDefaultValue": false,
"operations": [
"add"
]
},
"assignee": {
"required": false,
"schema": {
"type": "user",
"system": "assignee"
},
"name": "Assignee",
"key": "assignee",
"autoCompleteUrl": "https://mydomain.atlassian.net/rest/api/2/user/assignable/search?project=TJ1&query=",
"hasDefaultValue": false,
"operations": [
"set"
]
}
}
}
]
}
]
}

Lukasz Grobelny
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2022

createmeta is returning only the fields that are on the Create Issue screen

ghanshyam September 5, 2022

yes that is the problem in my create issue screen their is an option of reporter but it is not coming in fields with get response

RL January 16, 2023

I have a similar behaviour. Only custom fields are returned (and not i.e. "summary"). Was there a solution for "reporter" ?

ghanshyam January 16, 2023

No I do not find any solution for reporter 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events