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 ?
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:
Kind regards,
Bill
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is my rule
{
"fields": {
"project": {
"key": "REST"
},
"summary": "Issue created from REST API",
"issue type": {
"id": "1"
},
"customfield_10300": {
"value": "Bug",
"child": {
"value": "Incident"
}
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
}
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad to learn that worked. Please consider marking this question as "answered" to help others searching for solutions find them faster. Thanks!
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.