Required or Mandatory fields

Hi

How do I get the list of all required or mandatory fields in JIRA using either a CLI or REST ?

 

Thanks !

2 answers

Hi shravan,

                   I have a SQL Query which will list the custom field id's of the mandatory custom fields in JIRA

 

select FIELDIDENTIFIER from fieldlayoutitem where ISREQUIRED = 'true' AND FIELDIDENTIFIER like 'customfield%';
0 vote
Chris Fuller Atlassian Team Jan 05, 2016

https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-discovering-meta-data-for-creating-issues

In the second section, "Discovering issue field data", you'll notice that the fields specify whether or not they are "required".

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published 2 hours ago in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

199 views 3 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you