Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,733
Community Members
 
Community Events
184
Community Groups

How to delete stories underneath an Epic when delete this Epic?

Hi,

I have created a auto rule successfully that when create an Epic there will be 4 stories(Schedule Story, HW Story, Driver Story, Deliverable Story) created automatically. And their Epic link is this Epic.

Now my question is when I delete an Epic, I want to delete these 4 stories automatically. But this rule is failed. Could someone can help me how to write this rule? Thanks!

1.png

 

 

2 answers

1 accepted

2 votes
Answer accepted
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 18, 2021

Hi @Jessica JH7 Xu

I would check the logs to see the exact error message, but most likely it's because the issue was deleted already when you run the branch. 

Also check you have delete permissions in your project.

Instead of deleting them change the status to cancelled. 

Regards 

Hi Fabian,

Thanks for your reply. The error message as following.  I think you are right. I deleted this Epic already. The stories don't has the Epic link any more.

 

And  I have delete premissions in my project. I can delete them manually. 

If have way to delete these stories when delete Epic, it's good than cancelled them. But if has no way, I can only cancell them. Thanks.

2.png

Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 19, 2021

Hi @Jessica JH7 Xu

If you decide to cancel instead, this is straightforward.

Trigger: issue transitoned to cancelled

Same as you have with the only change to the action in thr branch.

Action: transition to cancelled

https://support.atlassian.com/cloud-automation/docs/branch-automation-rules-to-perform-actions-on-related-issues/

Thanks Fabian.

I come up with another way to implement the idea.  But still failed as following picture. So it seems that as long as the delete item is used as the trigger, the branch will not work.  Do you think so? Thanks.

3.png

0 votes
Charlie Gavey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Dec 19, 2021

Hi there,

Following on from Fabian's suggestion above, had you tried a scheduled rule that uses similar JQL but looks for stories without an epic link (i.e. where the epic has already been deleted), and then deletes those stories?

Cheers,

Charlie

Hi Charlie, Thanks for your suggestion. If look for stories without an Epic, it has a side effect to delete others storied not related this Epic if others stories has no Epic link. I want to avoid this scenario.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events