I'm trying to build and automation and I've seen multiple posts of people trying for similar things but I can't seem to understand them well enough or adapt them to what I'm trying to do.
In my incident screens I have a multi select asset picker field called 'Linked Device' that I can populate automatically or manually using objects simply called 'Devices' in the Assets schema. The Devices object have an attribute for Location that references another object in the schema called 'Location'.
In the same incident screens I have another multi select asset picker field called 'Location' that I'd like to auto-populate from the Location attribute from the Device objects selected in the 'Linked Device' field.
I read one forum post saying that if I'm already using an asset picker custom field (like Linked Device) I could just use the Edit issue fields action, select the my Location field, and using a smart value {{issue.customfield_XXXX.Attribute}} in my case {{issue.customfield_10060.Location}}. This gets me an output of:
I think I found the issue as I faced it today myself.
Quick note
Ensure that the Location cf has a correct field config, meaning it allows objects of objectType = Location.
Original issue
Unable to retrieve the configuration management database (CMDB) when updating the issue fieldBad RequestUnable to find any issue field values to edit:
Name LIKE {{issue.customfield_10060.Location.Name}}
From what I've read, the answer, for now, is to flatten the Assets schemas to make the "inR()" call more efficient.
I'm going to move in that direction but I hope this thread picks up someone who knows how to answer my original question.
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.