I would like to get the mandatory fields of a Jira Project through a restAPI request.
Is that possible?
I can not find this in the documentation.
Dear @Diana ,
yes, you can.
First get the IDs of all issue types of one project:
GET /rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes
Then get all meta info of one issue type:
GET /rest/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}
The response contains an entity "required". It's true for mandatory fields.
Example
...
{
"required":true,
"schema":{
"type":"user",
"system":"reporter"
},
"name":"Reporter",
"fieldId":"reporter",
"autoCompleteUrl":"http://myjira/rest/api/latest/user/search?username=",
"hasDefaultValue":false,
"operations":["set"]
}
...
So long
Thomas
Thank you for the answer! Works perfectly!
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.