I have two projects - Proj1 and Proj2 and one issue type IT1 for both the projects. I have requirement like if IT1 is created from Proj1, then there would be another cloned issue type under Proj2 and vice versa.
I have written two scriptrunner listeners for two projects to clone issue. I have written condition as below:
issue.issueType.name == 'IT1' &&
!issueLinkManager.getInwardLinks(issue.getId())*.issueLinkType.name.contains('Problem/Incident')
And in "Issue Link Type / Direction" , I have mentioned "causes" as the link type( where the name of the link type is "Problem/Incident" ).
But unfortunately while I'm trying to create the issue, it's entering into infinite loop. Can anyone please help me here?