{{varFeatureRegion.split(",")}}
{
"update": {
"customfield_11238": [
{
"add": {"value": "{{varRegion}}"}
}
]
}
}
Hi @YY Brother
Is that your entire rule? FYI it can help for a question like this to post images of your rule and the audit log details for context.
If that is your entire rule, please note the Issue Created trigger can fire so fast that the issue data is not available for use in other rule actions. That can lead to symptoms like what you are describing. The work-around for that is to add a Re-fetch Action immediately after your trigger. That will slow down the rule and reload the issue data before proceeding.
If that is not the cause I suspect the cause is your JSON is not well formed to copy the data, as described here: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-select-custom-field and here https://support.atlassian.com/cloud-automation/docs/jira-smart-values-json-functions/#asJsonObjectArray-keyName- Where you would need to dynamically generic the correct JSON.
Kind regards,
Bill
Yeah, I used additonal field to update it correctly. The key point here is that I need to iterate the linked issue's Region field value and then concatenate the JSON value to the additional field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First things first: would you please post images of your current rule and the audit log details showing the execution? That will provide context for what you are trying to accomplish, and then we can suggest ideas to help.
Next, once we have that info, it should be clearer which issue you are trying to edit: the trigger issue or something else.
And finally...the image will help clear up a problem in the written description of your rule: branches on more than one thing run in parallel and asynchronously. There is no guarantee of when such a branch will end...up to the last step in the rule. So, if you in fact have two such branches (as you describe) that rule cannot work as you expect.
There are often work-arounds for that rule structure, but we need to know your goal to help.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do both region fields have the same list of options?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes
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.