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

2 votes

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.

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
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 Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

522 views 3 5
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