Forums

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

how do i prevent linking issues to a closed epic

Deleted user March 16, 2023

how do I prevent linking issues to a closed epic

3 answers

1 vote
Ash Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 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

0 votes
Hila Lahav Rice July 12, 2023

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.

0 votes
Lucian Dragomir June 21, 2023

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
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

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 Now
AUG Leaders

Atlassian Community Events