How can I copy a cascading field, both parent and child into another cascading field, using Scriptrunner for Jira Cloud?
Blow is part of the script where I'm getting the ids from one cascading field:
def result = get("/rest/api/2/issue/${issueKey}")
.header('Content-Type', 'application/json')
.asObject(Map)
.body
.fields
Failed_ATP_test_parent = result.customfield_12159.id
Failed_ATP_test_child = result.customfield_12159.child.id
Now, I would like to set these values (parent and child) to another cascading field.
So far without any luck