Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

To make number field mandatory based on selected radio button.

DILEEP KUMAR May 27, 2018

Hi, 

I wanted to make the number field mandatory, only if radio button is selected while creating any issue. I am using JIRA 7.3.x

Could anyone help me with the groovy script for above requirement ASAP ?

RadioButton.PNG

Suppose in Bucket Action, if Delivery Conflict is selected the AUSL_Number field should be mandatory.

Regards,

Dileep Kumar

1 answer

1 vote
Praveen
Contributor
May 27, 2018

Hi Dileep,

You can try something like this in the behaviours,

def bucketAction = getFieldByName("Bucket Action")
def numberField = getFieldByName("AUSL_Number") if(bucketAction.getValue().equals("Devivery Conflict")){ numberField.setRequired(true) }

 -Praveen

DILEEP KUMAR May 27, 2018

Thanks Praveen !! Let me check.

Regards,

Dileep Kumar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events