Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a cascading field with Scriptrunner for cloud

Alex Kuterman
Contributor
February 24, 2022

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

1 answer

0 votes
Mauricio GALVEZ
Community Champion
February 24, 2022

Hi @Alex Kuterman did you explore this article

Best regards

Alex Kuterman
Contributor
February 24, 2022

Hi @Mauricio GALVEZ ,

Yes, I saw this article but I couldn't manage to convert it to work on Jira Cloud

Suggest an answer

Log in or Sign up to answer