Only allow tickets to be closed if certain fields are populated

Can someone advise if the following scenario is configurable ?

If the issue is a certain type (Bug) and the status is a certain type (resolved) then only allow the ticket to be closed if a certain field (fix version) is populated.

I've tried various tweaks to screens and custom fields but have so far been unable to do this.

Any help would be greatly appreciated.

3 answers

1 accepted

This widget could not be displayed.

Yes, this is possible, you need to go into the workflow, identify the transition resolved -> closed, and in that transition select the conditions tab and put in a condition that allows you to execute the transition only if fix versions field is set.

You can do this by selecting the option value field and inside it putting in the condition Fix versions(s) != null;

and yes since you need this condition only for bug, you need to define a workflow scheme which has this conditioned workflow associated with bug issue type.

Hope this helps


I only have the followingconditions available :

Code Committed Condition
No Open Reviews Condition
Only Assignee Condition
Only Reporter Condition
Permission Condition
Sub-Task Blocking Condition
Unreviewed Code Condition
User Is In Group
User Is In Group Custom Field
User Is In Project Role

There is no option to enter a condition such as "fix version !=null".

Am I missing something ?

This widget could not be displayed.

Use a Conditioned validator from Conditioned Workflow Functions for JIRA. This will only allow the transition to proceed if it is NOT the case that issue type is Bug and fix versions is blank. The following assumes both issue type and fix versions are on the transition screen, otherwise you need to use substitution variables from the original issue. This gives them a chance to add the fix version to allow the transition to proceed.

Conditioned validator 
Condition value: %transition_issuetype%#%transition_fixVersions%#, Regex pattern: Bug#\s*#, Exact, Negative

Message: A Bug must have a fix version

This widget could not be displayed.

Question closed.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

134 views 2 0
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