Forums

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

Workflow routing based on custom field value in Transition value

Akbar N January 10, 2019

Hi, 

I hope this is been answered somewhere but not in an exact context how our use cases needs it. 

1. We have this following workflow statuses. 

Funnel > Approval >  Groom > Done. There is one other status which is Denied

2. In the Approval Step above, we have transition screen which holds a custom field with 'Agree' or 'Disagree' as dropdown values. 

3. If user select Agree, then the transition needs to flow like Funnel > Approval > Groom > Done

4. If user select Disagree as value in the Approval status then workflow needs to work like 

Funnel > Approval > Denied as the end of the flow. 

 

Could you explain how can i achieve the above? Thanks in Advance. 

 

1 answer

0 votes
David Fischer
Community Champion
January 15, 2019

Hi Akbar,

You didn't specify if you are on Jira Server or Jira Cloud, and the solution is slightly different.

Anyway, unless you want to manually edit your workflow XML (which by the way is only possible on Jira Server), you'll need to add a transition from Groom to Denied, because a Jira transition can only lead to one predefined Status. 

Basically, the transition screen you mentioned in (2) belongs to a transition, and that transition goes from the Approval status to the Groom status. The problem is that you want to go to the Denied status instead of the Groom status if the user inputs Disagree on the transition screen. That is not possible in Jira. Instead, you'll need to automatically and instantly transition the issue further from the Groom status to the Denied status. You can do that by adding a transition from Groom to Denied (call it "Deny"), which you can hide from user using a "Hide from users (JMWE add-on)" Condition, and use a Transition Issue post-function on the Approval -> Groom transition to trigger the "Deny" transition, with a conditional execution script that checks the value of the custom select field ("Agree" or "Disagree").

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events