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
Hi @Mauricio GALVEZ ,
Yes, I saw this article but I couldn't manage to convert it to work on Jira Cloud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.