Forums

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

How to built the workflow in JIRA?

Pranita Warik September 14, 2020

CaptureWorkflow5.JPG

On creation of the issue, I can create three sub tasks for Sr. Mgr User, Mgr- Safety and Mgr-EHS. So this parallel workflows can be handled. But when the issue status is "resolved" for all the three sub tasks, then how do a trigger two more sub tasks for Sr. Mgr PED and Sr. Mgr Admin? Kindly suggest on how this can be modeled in JIRA Workflows. 

I do not have the JMWE plugin. I have JSU Automation suite for JIRA Workflows plugin.

Do I require to have JMWE for such use case?

3 answers

0 votes
Maria Kazakou {Appfire} September 14, 2020

Hi @Pranita Warik 

JSU can perform this flow and you do not need any other app for this.
The easiest way to create the second set of subtasks is to have the following in the workflow of the parent issue:

  • A transition that creates the two subtasks, maybe you want to change the status, maybe you do not. This depends on your workflow.

For the workflow of at least the first set of subtasks:

  • On the “Resolve” transition you register a Linked Transition post function that triggers the creation of the second set of subtasks mentioned above. Make sure to set the field “All other sibling issues must have one of the following statuses” to “Resoled” to ensure this post function is only executed when the last of the subtasks is resolved.

Please note: if the first and the second set of subtasks have the same workflow, the parent should be in a different status where the post function that creates the second set of subtasks can be triggered. Otherwise, the resolution of the second set of subtasks will trigger the creation of another set of subtasks.

If we can help you further, please feel free to reach out to our service desk.

0 votes
David Fischer
Community Champion
September 14, 2020

If you don't find an answer using JSU (I'm not sure JSU can do that), let me know and I can explain how to implement this using JMWE.

0 votes
Rakesh Katte September 14, 2020

I am not familiar with JSU or JMWE. But, I use scriptrunner and I would add a scripted post function for the resolve transition of the subtasks (Sr.Mgr user, Mgr safety, Mgr EHS) where I would run a query to pull the other two sub tasks and check if they are already resolved. If they are then I would create the new 2 sub tasks. Hope it helps.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.1
TAGS
AUG Leaders

Atlassian Community Events