Only allow tickets to be closed if certain fields are populated

Whip Hubley October 10, 2013

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

0 votes
Answer accepted
Rahul Aich [Nagra]
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.
October 10, 2013

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

Whip Hubley October 14, 2013

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 ?

0 votes
Whip Hubley October 26, 2013

Question closed.

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
October 11, 2013

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

Suggest an answer

Log in or Sign up to answer