The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to prevent an issue to be a parent and a child of the same issue

Boyd K
Contributor
November 15, 2022

Jira Data Center 9.0.0, self-managed/hosted in air-gapped environment with JSU Automation Suite for Jira Workflows.

We have implemented a child-parent dependency in our workflows for our issues (task type) using issue linking with a "is child of" and "is parent of".

Thus, a parent issue cannot proceed to a status unless all its child issues are already in that status or beyond.

However, what can we do to prevent an issue from being linked as a child and a parent of the same issue which would cause a circular dependency?

Is there an add-on or application that we would need to enforce this?

Thanks, Boyd

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
November 15, 2022

Hi @Boyd K 

I would think of using scriptrunner and create a listener on Update Issue, checking for changes in linking issues. In theory your script would search for any existing relation between the current and the target issue, and if that check would yield results, then it wouldn't allow it

Boyd K
Contributor
November 16, 2022

Will need to get ScriptRunner into our environment to try this out.  It just may need to take a while to get it there.  Thanks.

Like • Alex Koxaras -Relational- likes this