Hi Jira experts,
When a new issue is created under a project in Jira system, for some projects, 'components' field which is system field is set as mandatory but for other projects, it is set as optional.
So, when a user create new issue under a project in Jira system, I need to get this information so that I will ask a user to select a value in 'components' field.
I tried to change the REST API URL below to get the field type of 'components' field. But, I was not able to.
https://jira.*****.com/rest/api/latest/issue/createmeta/10103/issuetypes/10304/components
Would you please help how to change this URL to get this information from 'components' field?
Thank you for your help in advance.
Joseph
Welcome to the Atlassian Community!
The "field type" of the component/s field is "components". It's a unique system field type, not a custom field type of which you can add many.
Hi @SUNGSU AN
Component can be set as required at a project level using the Field Configuration Scheme.
If you request the meta data with the expand = project.issue.fields option you can see if the Component is required or not.
"components": {
"required": true,
"schema": {
"type": "array",
"items": "component",
"system": "components"
},
"name": "Components",
"key": "components",
"hasDefaultValue": false,
"operations": [
"add",
"set",
"remove"
],
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.