I need my condition to pass based on the issue type and there is no linked issue.
I can enforce the link type to be Relates but if there is a way to do any link type that would be preferred.
This is what I have -
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.link.IssueLinkManager
def issueLinkManager = ComponentAccessor.getComponent(IssueLinkManager)
! issueLinkManager.getInwardLinks(issue.getId()).any {
it.issueLinkType.name == "relates to"
} ||
issue.issueType.name == 'Dev Ops'
When I test by creating a linked issue with issue type Dev Ops it passes.
I tried bith outward and inward and relates to and relates and none of them have worked.
Any help would be appreciated!
Online 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.