how to make the field required if checkbox is selected

I need to be able to make the field required only if the check box is selected.

3 answers

Hi @Darya Koyfman

This could be implemented using a scripted validator on your workflow transition. Where the check is done on both the checkbox and the field to ensure that both or neither are filled in.

Hi @Phill Fox [Adaptavist]Thank you for your quick answer. I need to be able:

  1. If the check box is checked, then one of the field becomes "Required". If it is not, then that field doesn't have to be Required.
  2. I checked all scripted validators on my workflow transaction, and none of them fits to this. I am not a programmer anymore (especially Java), I am JIRA administrator and I create engineering processes.
  3. So, I need a script itself, if it is possible.

    Thank you in advance!
Steven Behnke Community Champion Jan 05, 2016

Customizing the product has always been part of JIRA. You're not going to find anyone who will perform that work for free. If you're interested in the typical methods, most people use the Script Runner add-on to write a transition validation script as Phill noted or use javascript through Script Runner Behaviors. The most permanent solution would be to write a JIRA Connect Validator or a JIRA Plug-in Validator, as these are the ONLY methods Atlassian recommends besides add-ons like Script Runner.

Hi Steven, 

I will try to play with that. 

Thank you!

Steven Behnke Community Champion Jan 05, 2016

It's an Adaptavist add-on, they are usually willing to provide troubleshooting advice here on Atlassian Answers, nice guys like Phill here. :)

@Steven Behnke Thanks for the plug for Adaptavist. @Darya Koyfman You may like to look at the supporting documentation for Scriptrunner at and in particular for some examples of the power of ScriptRunner.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 13 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

36 views 0 5
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