Unlink Child Issues (Portfolio Epic) from Parent Issue (Initiative) when transitioning Parent

Digvijay Singh Gehlot
Contributor
September 14, 2024

Hi Community,

I am using "Parent Link" field (added on Child Issue screen) to link between a Parent (Initiative) and Child (Portfolio Epics).

My use-case is:

  • When a Parent issue (linked with Child issues) is moved from "Cancelled" to "Open" status, the "Parent Link" field should be set as Empty i.e. related Child issues should get Unlinked when Parent is transitioned from Cancelled to Open automatically.

Please guide on how I can set up an automation regarding the above by using Scriptrunner, Jira automation, JMWE app or Post-function.

Thanks

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2024

Hello @Digvijay Singh Gehlot 

You can find some useful information in this KB:

https://support.atlassian.com/automation/kb/automation-for-jira-how-to-clear-the-parent-link-field-when-an-issue-is/

You can use an automation rule to accomplish your requirement.

You will need to identify the custom field ID for the Parent Link field, which is explained in the above article.

Create your rule thus:

Trigger: Issue Transitioned
From: Cancelled
To: Open
Condition: Issue Fields Condition
Field: Issue Type
Condition: equals
Value: Initiative
Branch Rule: Related Issues: JQL
JQL: "Parent Link" = {{triggerIssue.key}} and issuetype=Epic

Action: Edit Issue

For the Edit Issue action refer to the information available in the KB. You will have to use Advanced Editing with JSON rather than selecting a field from the list.

Screenshot 2024-09-16 at 12.23.22 PM.png

Suggest an answer

Log in or Sign up to answer