Forums

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

How to close Sub task of Linked Issue via Cloud JIRA AUtomation

Peyush Agarwal
Contributor
April 1, 2020

Hi,

 

I have Main Task which has few sub task. This has few Linked Task which are having few sub task as well. 

Now I have put an automation that when Main task is closed, check for Linked Task but I am not able to close sub task of this linked task. Can you please guide me. 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Ste Wright
Community Champion
April 13, 2020

Hi @Peyush Agarwal

Can I confirm what you want the rule to achieve? Is it:

  • If a main task is closed, locate the linked tasks (using linked issue type?) and close those also
  • If a parent task is closed, close sub-tasks below it

^ Is this what you're trying to achieve? If not, let us know the specifics so we can help create the rule(s)

Ste

Peyush Agarwal
Contributor
April 13, 2020

@Ste Wright  - Although I have been able to find a workaround but what I am trying to achieve is if a Main task is closed, locate the linked task and close it and also locate sub task in all those linked task and close it 

Ste Wright
Community Champion
April 13, 2020

Hi @Peyush Agarwal 

What is the workaround you located?

It would appear it would be simplest to have two separate rules:

  • Close Sub-Tasks when a parent issue is closed
  • Close Linked Issues when main issue is closed (located via JQL condition)

^ This should achieve what you need. You would need to ensure that the sub-task rule can be triggered by other rules, so the linked issues rule can auto-activate it.

To enable this, go to the Sub-Task Rule > Rule Details and change the "allow rule trigger" checkbox to TRUE.

Ste

Peyush Agarwal
Contributor
April 13, 2020

@Ste Wright  - Yes this is exact workaround I have used by creating 2 different rules however I thought there might be a solution within one rule. 

Ste Wright
Community Champion
April 13, 2020

Hi @Peyush Agarwal 

It might be possible using branches.

But, I would suggest having two rules is better - as you'd still need a rule which closes the sub-tasks of the main issue (and I assume there might be issues without linked issues which need sub-tasks closed automatically).

Otherwise you could create a hyper-complex rule covering all scenarios - but has to be tweaked each time you enhance your process!

But - please feel free to share your two rules and I'd be happy to see if there is an option to combine.

Ste

Suggest an answer

Log in or Sign up to answer