I have a field called "Team" in my project. In the UI when I want to set the value for this field it shows me a drop-down list that allows me to select one among the few options.
However, when I retrieve the issue using REST API I see the "id" of the selected option like this:
"customfield_12300": "345",
"customfield_12300": {
"required": false,
"schema": {
"type": "any",
"custom": "com.atlassian.teams:rm-teams-custom-field-team",
"customId": 12300
},
"name": "Team",
"fieldId": "customfield_12300",
"hasDefaultValue": false,
"operations": [
"set"
]
Hi,
Welcome to the community
You need to use this API to get the option allowed for the customfield
/rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}
https://docs.atlassian.com/software/jira/docs/api/REST/9.3.0/#api/2/issue-getCreateIssueMetaFields
Thanks! I will try this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bijan did you got the expected output? If so how to achieve that?
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.