Forums

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

Jira Automation - How to link subtasks with link from parent

Dzanan Gvozden September 29, 2021

Hi all,

I have a story with 5 subtasks. That story is being blocked by a different story.

What I want to do is - mark my story as blocked by the other story, and then have automation block all my subtasks as well.

So, here's the representation of it:

Story A - blocked

  • Subtask 1
  • Subtask 2
  • Subtask 3
  • Subtask 4
  • Subtask 5

Story B - blocking

I want the blocked status from story A to be propagated to all subtasks, linking to the same blocking issue - Story B.


Any suggestions are welcome.

Thanks.

1 answer

0 votes
Alex Koxaras -Relational-
Community Champion
September 29, 2021

Hi @Dzanan Gvozden and welcome to the community!

 

Try the following rule:

rule 001.png

 

And on Edit issue -> copy linked issues from Destination Issue.

rule 002.png

 

For me it worked. However keep in mind that as this rule is set up, it will only work if:

  • You place the link issue after the subtasks have been created
  • It will only works for issues in the inward linking (is blocked by, is related etc)

Let me know if you need anything else!

Dzanan Gvozden September 29, 2021

Hey @Alex Koxaras -Relational- thank you for the answer. Unfortunately, this doesn't work for me. It doesn't trigger at all and audit log doesn't show it triggering.

Alex Koxaras -Relational-
Community Champion
September 29, 2021

Did you take into consideration what I wrote in the bullet points?
Can you please share your rule?

The rule works because I've tested it myself (and you see it on the screenshot as well).

Like Bill Sheboy likes this
Bill Sheboy
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 29, 2021

Hi, Alex!

Would it also help if the rule checked the link type for blocking types?

Kind regards,
Bill

Alex Koxaras -Relational-
Community Champion
September 29, 2021

Yes @Bill Sheboy it would help , but I just though to include all link issue types. If @Dzanan Gvozden wants to check only for blocks/is blocked by, then he only has to select it within the trigger.

Like Bill Sheboy likes this
Dzanan Gvozden September 30, 2021

Hi @Alex Koxaras -Relational- here's how I got it set-up:

Screenshot 2021-09-30 at 09.22.49.pngScreenshot 2021-09-30 at 09.22.35.png

Alex Koxaras -Relational-
Community Champion
September 30, 2021

@Dzanan Gvozden why you've place trigger "On Issue transition". You issue is not transitioning to anywhere. You just insert a link issue, right?

Dzanan Gvozden September 30, 2021

Oh, my bad. Let me fix that. Don't know what I was looking at. Sorry for that

Dzanan Gvozden September 30, 2021

@Alex Koxaras -Relational- works perfectly now. Now, for improvements, is it possible to also remove the blocker when I remove it from parent in the same automation?

Alex Koxaras -Relational-
Community Champion
September 30, 2021

Create a new rule with another trigger and make the necessary adjustments:
link deleted.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events