JIRA groovy (script runner): Check if the CF field is required

e February 13, 2015

Hello,

 

How do I check if the custom field is required? 

3 answers

0 votes
Peter Bengov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2015

Hey ET smile

If you are interested in making this test while the ticket was already created, you can add the following script to your workflow Validator.

cfValues['Your Field Name']!=null

If you are looking to make a field mandatory from ticket creation - follow Joao's answer.

0 votes
Jirong Hu February 13, 2015

I found a similar answer here: https://answers.atlassian.com/questions/146132

0 votes
João Palharini
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2015

Hey there!

You can check if it's required by going into your Field Configurations settings page under JIRA's Administration panel, then clicking on your scheme. You'll see a REQUIRED flag right next to the field's name, like shown below.

image2015-2-13 18:17:16.png

Cheers!

Joao

Suggest an answer

Log in or Sign up to answer