Current situation:
ScriptRunner Post function 'Clones an issue, and links' used for cloning an issue from project X to project Y
Wish
Copy the field Organizations in JSD project X to custom field Reported Organization in project Y
Current implementation
The solution must be something like this
def cf = customFieldManager.getCustomFieldObjects(sourceIssue).find {it.name == 'Reported Organization'}
issue.setCustomFieldValue(sourceIssue.(Organizations)However, I'm getting an error:
Script305.groovy: 4: unexpected token: @ line 4, column 54. ue(sourceIssue.(Organizations)
Ideas anyone? Thanks.
Could You describe your case in which You want to automate merge check creation? ScriptRunner doesn't support any externally available REST API but maybe your case could be automated by ScriptRunner plugin in other way, everything depends on the use case.
Kind Regards,
Tomasz Wozniak
Software Engineer - ScriptRunner for Bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.