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 vote

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 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
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

809 views 2 19
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