Can You Set a Resolution Based on a Previous Status

Is it possible to set a resolution for an issue based on the path it took through the workflow using only what's available to OnDemand customers?

Here's our use case:
We use "Resolved" and then "Closed" statuses at the end of all of our workflows to allow the requesting group an opportunity to comment before we close the ticket. I'm setting up a new business unit, and their process involves an approval at the beginning of the ticket. If it's approved, it goes through a few statuses before hitting the "Resolved"->"Closed". If it's rejected, they'd like it to directly to "Resolved", however they also want to have a different resolution to identify the issues they rejected.

Is there a way to single out the issues that progressed on the 'rejected' track and flag them with a different resolution? I realize we could use a different status, but that's going to gum up some other things and I'd rather not do that if we can.

1 answer

1 accepted

Since your using ondemand there is probably not a way to manage this that I can think of. If you were self-hosted you might be able to set a custom field with a resolution when moving into "Resolved" and then copy that fields value to set the resolution code when moving to "Closed" (JIRA Suite Utilities plug-in) or (I'm guessing you can have a script work from the issue history) use the Script Runner plug-in to set the resolution.


I know this is not what you were asking exactly but, given your using ondemand, have you thought of setting the resolution code when you move this issue to the "Resolved" step? You could set a "rejected" or "Solved" resolution code as a post function in the transition to the "Resolved" step as it sounds like aside from the requesting group making final remarks, the issue is technically "resolved".

That's actually an interesting idea, storing some flag in a hidden custom field and using that to set the resolution. My only concern is that the 'Resolution' field might not match a 'Not Approved' copied from a custom field to one set using the field itself, but I'll try it and see.

That worked! Here's what I did:

1) Create a new field to stash the resolution you want. I made mine a single line text field.
2) Add a post function in a transition in each path to set the 'stash' field to whatever you want the resolution to be.
3) In the final transition, I added a post validator to copy the value of 'Stash' to 'Resolved'. I first tried using the 'Copy Value From Field to Field', but this didn't work; I had to use 'Copy Value From Other Field'.

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 Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

627 views 3 11
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