Limiting resolution field options per Workflow in JIRA: Step-by-Step Guide

Aug 10, 2017
Aleks Yenin

Posted by Aleks Yenin

Today I’d like to share my hands-on experience in limiting resolution options in JIRA. It can assist, for example, in testing and QA when you finally need to choose between “black” and “white”. In fact, it’s fairly easy to limit which resolutions are available in a final workflow transition. Let’s see how it works.

 

 Resolution in JIRA

The Resolution field in JIRA has visible options that can be used across all JIRA projects (like a general setting).

1

But often it can be a good idea to keep the number of statuses in your workflow as small as possible to make maintenance (and future reporting) easier. So it makes sense to limit the resolution field options for specific projects.

Let’s pretend you wish to exclude the Cannot Reproduce option from the resolution field only for a project “A“. In order to do this, you will firstly have to obtain the resolution ID that you want to exclude. Here’s how:

  • Go to the Resolution tab under Issues sectionIssue Attributes section to see all the resolution options.

3

Note: you must be JIRA administrator to access this page.

  • Click on the Edit link corresponding to the Cannot Reproduce option, as shown here:

4

Note: If you look at the end of the URL in the browser, you will find ID is equal to 5. We are going to use this value in later stage.

  • Next go to the selected project workflow section and click the edit button, as shown:5
  • Select the transition properties (highlighted in red) where the resolution field is located:6
  • Now you’re ready to add the property. Don’t forget to click on Add, add the key property jira.field.resolution.exclude, set it to 5, and eventually publish the draft workflow:7
  • Finally, when a user closes a ticket in the example project “A”, Cannot Reproduce option can’t be selected anymore.

8

Done!

P.S. If you want to exclude several resolutions, add their IDs separated by comma (without spaces!) in Property Value field (e.g.: 5,7,11).

Share this post on:

CONTACT US

We are always ready to help you