Way to require field, only if a specific resolution?

There are some required fields I have, but they aren't required if the resolution is 'Will Not Fix" or "Not a Bug". Is there a way to set this up?

2 answers

This widget could not be displayed.

If the transition that sets the resolution of the issues to "will not fix" and "not a bug" to another status that all the other resolutions, you could use the "Fields Required" validator on the other transition to make your field required in those cases. If all resolutions are brought together in 1 single status, I do not think it is possible to make the fields required in some cases and not in others. Depending on the type of field you prefer to be required, you could also consider to make it required in all cases, and just give it a specific value whenever the resolution is "will not fix" or "not a bug". Last option would be to have multiple transitions from the current status to the next, where you remove the resolution field from the transition screen in the cases of "will not fix" and "not a bug", and set the resolutions in those 2 cases through a post function. You can put all other possible resolutions in a single transition, where you DO add the resolution field to the transition screen opposed to setting it through a post function, and through the validator make the fields required that you need.

You do need to enable the JIRA Suite Utillities add-on in order for this specific validator to show up.

This widget could not be displayed.

You could use the Groovy Script Runner plugin to add a little custom script to the validator.

https://jamieechlin.atlassian.net/wiki/display/GRV/Validators The examples in this link almost do what you need.

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...

286 views 5 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