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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

727 views 6 13
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