Can I restrict the resolution choices?

Alan May 23, 2018

We have a workflow which provides 2 ways to mark an issue as "Done"

  1. A transition from "In Progress" to "Done" to cover the case where we "abandon the issue, we're not going to do it"
  2. Go through all the testing statuses and then transition to "Done" from the last testing status ("Resolved"). This covers the case where we actually fixed the problem / implemented the feature

 

For the latter case there's no real need for a transition screen - just set the resolution to "Done". But for the former, where we are abandoning the issue, we use the standard "Resolve Issue Screen" and this offers a drop-down menu which includes choices for the Resolution of

  • Done
  • Won't Do
  • Duplicate
  • Cannot reproduce

 

Is it possible to restrict that menu so that it does not include "Done" and only allows user to choose one of 

  • Won't Do
  • Duplicate
  • Cannot reproduce

?

3 answers

1 accepted

8 votes
Answer accepted
Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2018

Hi!

Yes, there's a way to accomplish this.

You should set

 jira.field.resolution.exclude

property on your status. To learn the resolution ID (which you should use in the property above) go to the 

Issues > Resolutions

Find there the resolution you want to exclude, click "Edit". The number at the end of URL would be the resolution's ID.

Hope this helps.

Alan May 23, 2018

Hi Greg, thanks for that tip.

One question: when you say "you should set the jira.field.resolution.exclude property on your status" - should that be on the start status of the transition ("In Progress") or on the end status of the transition ("Done")?

Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2018

I'm sorry, it's not status but transition property you should set.

Like # people like this
Alan May 23, 2018

That's it!

 

Now working as desired, thank you

shailesh dhawale February 29, 2024
3 votes
Whitni Smith May 2, 2022

Adding to this answer in case someone else (like me) comes looking
to exclude multiple resolutions -- add the ids as comma separated (no space)

In my case the list of resolutions I needed to exclude was longer than the include so I used the variable  jira.field.resolution.include 

Antonio Ardila May 3, 2022

@Whitni Smith can you pls provide of how you used it (the formula used), that would help me a bunch!  Thank you!

Whitni Smith May 3, 2022

Hi @Antonio Ardila 

I used the exact instructions provided by @Grigory Salnikov in setting properties for the transition status. 

For me this was editing the properties for the resolved transition, in the property key I put in jira.field.resolution.include and then for the ID information, I used the method Grigory described and entered all of them in the field separated only by a comma

id1,id2,id3,etc 

Like # people like this
Caleb TeBokkel March 6, 2024

no space... thank you

0 votes
Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2018

You're always welcome!

Suggest an answer

Log in or Sign up to answer