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

0 votes

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
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,385 views 17 10
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