How can i set value for cascading field during creation of ticket using jira automation?

Rajesh Konda February 7, 2023

Hi All,

I have a requirement to create ticket based on scheduled hours for one project, for that project there is a field (Cascading) set as mandatory. using Jira automation i was trying to update cascading field value but the cascading field was not visible under Choose field set. So I set the value under field more option using small code. But when i try to run the code an error is showing as cascading field is required. Below is the code i have set for the cascading field. Can any one guide me below is correct or I'm doing any wrong. 

thanks in advance 

{
"update": {
"customfield_10163": [
{
"set": {
"value": "{{Issue.fields.customfield_10163.Car}}",
"child": {
"value": "{{Issue.fields.customfield_10163.child.Gas}}"
}
}
}
]
}
}

 

Error:

 

ction details:
Create issue
Error creating issue
Cascading is required. (customfield_10163)

1 answer

1 accepted

1 vote
Answer accepted
Rajesh Konda February 7, 2023

Sorted out after trying below code. 

 

 

{
"fields": {
"customfield_10163" : { "value": "Car", "child": { "value" : "Diesel"} }
}
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events