Forums

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

Updating Cascading Custom Field via JSON

Andre Menezes January 16, 2024

Hey All,

 

I am trying to update a cascading custom field, but, I don't know what is wrong with my JSON.

 

{
"fields": {
"customfield_1234": {
"value": "Issue",
"child": {
"value": "Hardware"
}
}
}
}

 

I also tried:

 

{
"set": {
"customfield_1234": {
"value": "Issue",
"child": {
"value": "Hardware"
}
}
}
}

 

And,

 

{
"update": {
"customfield_1234": {
"value": "Issue",
"child": {
"value": "Hardware"
}
}
}
}

1 answer

0 votes
Trudy Claspill
Community Champion
January 16, 2024

Hello @Andre Menezes 

Welcome to the Atlassian community.

What is the context where you are trying to use this code?

Is it in an Automation Rule? If so, please show us the entire automation rule, and the details of the step where you are trying to use this code.

You can find details on how to update a Cascading field in the Automation Rules documentation here:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Cascading-select-custom-field

This should work:

{
"update": {
"customfield_1234": {"value": "Issue","child": {"value": "Hardware"}}
}
}

What is the configuration of your Cascading field?

What are the parent and child values? Are you sure you have provided valid values?

Are you sure you have provided the correct identifier for your custom field?

If this is from an Automation Rule, what information is recorded in the Audit Log for the rule execution? What is the result that you are getting in the issue?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events