Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

how do i prevent linking issues to a closed epic

Deleted user Mar 16, 2023

how do I prevent linking issues to a closed epic

3 answers

1 vote
Ash Yadav - VMotion IT Solutions
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 16, 2023

Hi @[deleted] , Welcome to the Atlassian Community! 

 

Have a look at this thread: https://community.atlassian.com/t5/Jira-questions/How-to-prevent-epic-linking-issues-to-epics-of-a-particular/qaq-p/936417

A similar question appears to have been asked already it seems. 

Generally speaking you can achieve this by setting up a workflow condition that prevents the linking of issues to closed epics.

There are some limitations on Jira Cloud as you'll later find in the thread. 

 

Hope this helps. 

 

Kind Regards, 

Ash

thanks, but preferably if we could prevent it while the link  is performed and not after. that will reduce allot of errors, like permissions on edit for the EPIC.

Hi @[deleted] 
try the below automation.
How it works: when a ticket is updated it checks if it has a parent Epic and if that Epic is in statuscategory=Done or "Epic Status"=Done (I'm using Related issues condition, with Related issues: Epic, and condition: Matches specified JQL, with Matching JQL: statuscategory=Done or "Epic Status"=Done), and if the ticket is not Done (statuscategory!=Done) then it deletes the Epic Link and notifies the initiator through an email with this content:

Hi,
ticket <b><a href="{{Issue.toUrl}}">{{Issue.key}}</a></b> was added to or is linked to <b><a href="https://your-instance-goes-here.atlassian.net/browse/{{issue.epic.key}}">{{issue.epic.key}}</a></b> which is a <b>{{issue.epic.status.name}}</b> Epic.

Please check it as adding <b>open</b> stories to already <b>closed</b> Epics should be avoided as it is not a good practice (as alternative please open a new epic and move the open stories to the new created epic).
<b>Be aware that the Epic link field was cleared.</b>
Thanks.

Screenshot 2023-06-21 231452.png

 

Regards,
Lucian

Suggest an answer

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

Atlassian Community Events