Forums

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

Add value Cascading List Automation

Marcelo Ignacio Cid Abud
Contributor
August 3, 2022

I am trying to create an automation that adds a value (cascade list) to a ticket when it goes from the backlog state to in progress but I have not been successful.

The first choice is a bug and the second is an incident
Try this way:

{
"fields":
{
"customfield_10882": {
"value": "{{customfield_14967}}",
"children": {
"value": "{{customfield_15052}}"
}
}
}
}

Can anybody help me ?

1 answer

1 accepted

3 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2022

Hi @Marcelo Ignacio Cid Abud -- Welcome to the Atlassian Community!

You seem to be matching the how-to from the documentation: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Cascading-select-custom-field

However, depending upon the field types/values you may need to reference the correct attributes.  Please see this similar post's question for an example: 

https://community.atlassian.com/t5/Jira-Software-questions/Re-Jira-Automation-Cloud-Cascading-Fields-Copied-from/qaq-p/2030873/comment-id/196924#M196924

Kind regards,
Bill

Marcelo Ignacio Cid Abud
Contributor
August 4, 2022

Hi @Bill Sheboy 

I tray with both link but i had no results.

What I am trying to do is that when an issuetype "bug" is created, automatically the field "category by type of issue" (which is the drop-down list with several options) automatically complete the field assigning the option Bug -> Incident

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2022

I am a bit confused by what you are trying, as you note triggering on the issue create and then seem to reference other fields in the JSON edit.

Would you please post images of your complete rule and the audit log details showing the execution?  That may provide more context.

And also, it is possible the edit is using the incorrect values.  Please try this:

Marcelo Ignacio Cid Abud
Contributor
August 4, 2022

Hi, 

This is my rule

Captura de pantalla 2022-08-04 101150.png

 

{
"fields": {
  "project": {
"key": "REST"
},
  "summary": "Issue created from REST API",
  "issue type": {
"id": "1"
},
  "customfield_10300": {
"value": "Bug",
"child": {
"value": "Incident"
}
}
  }
}
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2022

Thanks for that additional information.

When you are only trying to set that custom field, you do not need any of those other fields.  Please note the error message in the log shows you are trying to change the project, which is not needed for this rule.  Instead please try this:

{
"fields": {
  "customfield_10300": {
"value": "Bug",
"child": {
"value": "Incident"
}
}
  }
}
Marcelo Ignacio Cid Abud
Contributor
August 5, 2022

@Bill Sheboy Thanks 

 

The command worked perfectly for me, thank you very much.

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2022

I am glad to learn that worked.  Please consider marking this question as "answered" to help others searching for solutions find them faster.  Thanks!

Suggest an answer

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

Atlassian Community Events