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
Community showcase
Published Mar 14, 2019 in Jira

Updates to jira.atlassian.com give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

552 views 1 14
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