We are using Jira Cloud with the most current version of Scriptrunner.
I am trying to add a component to a production support issue as a post function with scriptrunner on create. I have added the following script:
issueInput.fields.components += [[
name: "Support Issue"
]]
Im getting the following error:
2020-09-02 15:26:40.668 ERROR - No such property: issueInput for class: Script1 on line 1
2020-09-02 15:26:40.785 ERROR - Class: com.adaptavist.sr.cloud.workflow.RunScript, Config: [className:com.adaptavist.sr.cloud.workflow.RunScript, uuid:3b0cd080-f87b-4f3d-bdc6-682713f6bd31, description:Add Support Issue Component, enabled:true, condition:issueInput.fields.components += [[
name: "Support Issue"
]], executionUser:ADD_ON, accountId:5d28a2eb831d7b0bcfbe559a]
Any suggestions? I'm really new to Scriptrunner and having a hard time, so any help is very appreciated.