Hello Community,
I'm trying to create an automation rule to update the Company, Department and Office asset object fields based on the value in my "All branches" assets objects type field.
I have mobile VIP tech support agents that we're trying to accommodate, and updating three fields is two too many...
I'd like to be able to have them only fill out the "All Branches" (customfield_10217) field and to scrape the rest of the required info from that field.
I'm running into issues crafting the proper series of {{lookupObjects}} and edit issues to get this accomplished.
In Department I have a "Company Name" attribute, and in Office I have a "Department name" attribute. How it currently works is that the Department field will change what is populated based on the on the Company field selection, and the Office will depend on the Department field, based on Filter issue scope.
My "All Branches" field has the same Filter scope, but no Filter issue scope, as the Office asset field.
My Company Field - customfield_10112
Department Field - customfield_10113
Office Field - customfield_10114
My automation rule can currently update the Office Asset Field with the All branches with no issue since they share a 1:1 link, and I can correctly query the lookup object and add it to the audit log, but when I try to edit the issue I encounter
"An error occurred while requesting remote information
I've snipped my current automation rule, but I can't get it to populate Department yet, haven't even tried Company.
I ended up resolving this by using Jira smart values - Assets | Cloud automation Cloud | Atlassian Support
and using the object reference section
{{object.(reference name).(attribute name)}}
I used edit issue to copy Office Asset Field from the value in All branches since they are the same data.
re-fetched issue data
then I used Edit Issue on the Department Asset Field with:
Name Like "{{issue.customfield_10114.Department Name.name}}
re-fetched issue data
and the Edit Issue on the Company Asset Field with:
Name Like "{{issue.customfield_10113.Company Name.name}}"
Using the {{object.(reference name).(attribute name)}} way to reference things
customfield_10113 is the object.
Company name is the Reference name
Name is the Attribute name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.