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

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

Rahul

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 ?

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 
Conditions:
Condition value: %transition_issuetype%#%transition_fixVersions%#, Regex pattern: Bug#\s*#, Exact, Negative

Message: A Bug must have a fix version

Question closed.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,314 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot