Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Transition

Brijesh Bhaskaran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 7, 2018

We have the following requirement, Our JIRA page has two fields,

  • Field A (Checkbox, non-mandatory)
  • Field B (Textbox, non-mandatory)

Here is the conditional transition requirement

  1. When an issue is created or is in the in-progress state, a team member selects Field A (checkbox)d.
  2. When the issue is moved to resolved, then I would like to check the following,

If Field A is selected, then move to resolved state only if a string (free-text) is entered in Field B text box or if Field B is not equal to NULL.

I have been trying conditions and transitions but I am unable to achieve the above. The conditions are not getting checked and the issue is moved to resolved or done state.

Any help is greatly appreciated.

1 answer

0 votes
Alexey Matveev
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.
September 7, 2018

Hello,

You would need an add-on for it. For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could write a validator for transitions, which lead to the Resolved or Done statuses. You could write a code like this there:

if (isNotNull(#{FiledA}) && isNotNull(#{FieldB})) {

  return true;

}

return false;

You can find more info on validators here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Forvalidator:

Suggest an answer

Log in or Sign up to answer