I need to copy Assets object field values to Jira custom fields with automation when Asset object is chosen to another custom field.
Below is the current automation that works for Asset fields that are text fields in assets - marked green. These ones copy the data from Assets back to Jira perfectly.
Automation doesn't work for Asset fields that has Attributes as other Asset object (dependency) or user picker field. This will return as an error:
"An error occurred while requesting remote information
What is the correct way to gain information from Asset attributes that use other Asset objects? The "Sihtgrupi tüüp" is a multi object picker Attribute in Assets and the "Teenuse omanik" is user picker.
The first field that you are trying to fill out is an Assets field and needs a AQL in order to be able to add value to it, something like this:
Name = {{issue.customfield_10675.xxx}}
The second field that is failing looks to be a user picker field, and if so then you have to use the Atlassian ID of the user that you want to set it to. I would recommend that you add Log action components so you can see what the smart values are returning.
Thanks for the quick answer. It did work with AQL.
So instead of {{issue.customfield_10675."Sihtgrupi tüüp"}} i added Name = {{issue.customfield_10675."Sihtgrupi tüüp"}}
I also fixed the user field syntax.
My syntax had {{issue.customfield_10675."Teenuse omanik".Account}} but was supposed to be {{issue.customfield_10675."Teenuse omanik".AccountId}}.
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.