jira workflow resolution Validator trastion

Hi:

How to add the resolution value validator to transtion.

eg:

If the issue A had been resolved by fixed.

And the issue B had been resolved by Duplicate.

Then the issue A only can be transtion to status verify,

and the issue B only can be transtion to status close.

Could somebody help me?

1 answer

1 accepted

1 votes

You'll probably need to do some coding for this.

Jira has a structure that supports "plugins" to provide new features. In fact, most of the existing validators are plugins already (included in a standard distribution)

Some thoughts though

  • You probably don't want a "validator", this sounds like a "condition" to me. In the workflow, you'd create trnasitions to verify and close, and then put the conditions on them. A transition is only offered to the users if the issue passes the conditions. So your conditions would say "only show verify if resolution is fixed" and "only allow close if resolution is duplicate". A validator kicks in after the user tries a transition, and it could be quite annoying to see "you cannot do this because you've set the resolution incorrectly"
  • I've not seen a condition or validator in the marketplace that would do this
  • If you do want to do this, I'd be very tempted to use the "script runner" plugin to do it - you still need some code, but it means you can code in-place, not have to write all the stuff that goes around writing a plugin
  • Could you do this the other way around? Have a transition going into "closed" that is called something like "this is a duplicate issue" and on that transition, you can use a post-function (off-the-shelf) that sets the resolution to duplicated?

Hi Nic, Thanks your resolutions.

I think the script runner is a good idear.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,754 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot