Current situation:
- ScriptRunner Post function 'Clones an issue, and links' used for cloning an issue from project X to project Y
- In project Y the Security Level is automatically set to 'Internal' (by using a the post function 'Set issue security level depending on provided condition" on the create transition)
Wish
- Set the Security Level based on a condition:
- IF custom field in original issue in project X "'Set Reported Issue Public?" = "Yes", THEN set Security level to "Public"
- IF custom field in original issue in project X "'Set Reported Issue Public?" = "No", THEN set Security level to "Internal"
Current implementation
I've the following condition
issueLinkManager.getOutwardLinks(issue.id)*.destinationObject!(cfValues['Set Reported Issue Public?']?.value == "No"
However, I'm getting an error:
Script270.groovy: 1: expecting EOF, found '!' @ line 1, column 62.
s(issue.id)*.destinationObject!(cfValues
Not sure how to implement the condition.