Forums

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

JIRA Automation - action only for sub-task from the same parent task

Przemek April 20, 2022

Hello all,

I need help with one task related to JIRA Automation.

Scenario:

I have 10 or more main/parent tasks. Each of them contains exactly the same number of sub-tasks, with exactly the same naming convention. I'm preparing a rule that after changing the status of one of the sub-task will change the status of another sub-task. Since each subsequent created main/parent task will have exactly the same sub-tasks, with the same names, I generally use assumptions related to the names. The rule works, but unfortunately, it changes the status of subtasks from each main/parent task. 

Screenshot 2022-04-20 at 09.17.46.png

Now, according to my rule, when I change status of Sub-task A from Task 1 it changes status of Sub-Task B from Task 1 (according to expectation), but in the same time it changes status of Sub-task B from Task 2 and Task 3. 

The question is, what I have to add to my rule so that the rule only works on sub-tasks from one main/parent task. So, when I change status for Sub-Task A from Task 1 it only changes status for Sub-Task B from Task 1. 

Screenshot 2022-04-19 at 13.52.42.png

I will be grateful for your help :-)
Thanks

1 answer

0 votes
Deleted user April 20, 2022

Hi Przemek,

I think you want to edit sub-task of specific trigger task issue.

Please try "New branch" which could action on other related issue.

截圖 2022-04-20 下午3.34.03.png

 

And choose "JQL" condition to filter your target issue.

I think maybe the problem is that JQL didn't response the correct issue object.

 

regards,

Iris Chen

Deleted user April 20, 2022

Try this JQL "linkedissue" to limit the scope and filter your target issue!

截圖 2022-04-20 下午3.53.51.png

Przemek April 20, 2022

Hello Iris,

That can works, but unfortunately/probably this will require separate rule for each main task. And every time I will create a new main task, I will have to create/adapt rule for this new main task.

And this is what I want to avoid. 

Thanks

Deleted user April 20, 2022

Hi Przemek,

I am not sure if it work, but try to use action "Lookup issues" first to get the main issue key.

Then use branch to filter your target sub-task issue.

See the example below.  Hope it helpful.

截圖 2022-04-20 下午5.03.50.png

 

regards,

Iris Chen

Przemek April 20, 2022

Hello Iris,

Thank you for constantly support :-)

It's seams that I have different version of JIRA or something because I don't see this action on my list :-(

Screenshot 2022-04-20 at 11.33.21.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events