Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mandatory fields of a transaction from JIRA rest APIs

How to get the required/mandatory fields while doing a transaction in JIRA .

I have tried the below API but it is not returning any field id ..

https://ourCompany.jira.com/rest/api/2/issue/" + ticketID + "/transitions?expand=transitions.fields"

in the returning JSON all the value of required are coming false for all the fields(system and custom both) even if i have some mandatory fields in the form for a transaction.

like image 956
Biplab Avatar asked Dec 05 '25 16:12

Biplab


1 Answers

You need the metadata information of the issue. Read this: https://developer.atlassian.com/jiradev/api-reference/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-discovering-meta-data-for-creating-issues

Note: you'll need the project and the issue type for the call, as the field configuration can be per project + per issuetype configured.

like image 76
Koshinae Avatar answered Dec 09 '25 20:12

Koshinae



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!