Make a field required based on the value in other filed

I have to make a field required based on the value in another field. We have scriptrunner add-on. What is the simplest and best way to achieve this?

Help Please

1 answer

This widget could not be displayed.

The included Behaviors module can do this or you can use a Script Validator. The Simple Script Validator includes several examples. 

I cannot do using behaviors module as it does not have condition options based on existing fields (it has a ton of current user and workflow action ans step options but no option for if some field has some value!)

And from the examples provided in Script Validator I cannot find any thing that I can understand/convert for my case.

Can you provide me a sample syntax for  this logic?

IF dropdown_field = option3 or option4 then Text_field =Required END IF

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

182 views 2 0
Join discussion

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