Hi,
I'm attempting to write a simple validation script that fails the transition if a certain linked issue type is not present. Currently, the linked issue field is on the transition screen. I also have the Resolution field on the transition screen. Here is my script:
def resolution = issue.getResolution()
if (resolution.getName() == 'Duplicate') {
issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name.contains("Duplicate")
} else {
return true;
}
I added logging and discovered aht the resolution.getName() is returning 'Duplicate', but the return from getOutwardLinks returns empty. I swapped out the getOutwardLinks method with the getInwardLinks method and the script behaves the same.
I think it's weird that the resolution field has the value that the user entered on the screen for the transition, but the linked issue value did not get updated.
Any suggestions?