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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Regards,
Lucian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.