I have two Insight object types:
The Device object type references the User object type - i.e. a Device object references a User object through an Owner attribute.
When a Customer submits a Device support request form, they select their user from an Insight Object custom field dropdown list.
Is it possible in implement some automation that checks the selected Users object for a Device object reference, pulls the referenced devices Serial Number attribute, and updates a Context field with that devices S/N?
Alternative would be to have the S/N custom field as a customer-filled-out field in the request form, but I don't expect most of my users to know where to even find their device S/N.
Yes this is totally possible and you can actually eliminate the need for the user selector (unless you want them to be able to select someone else). If this is the route you'd like to take, set the Filter issue scope (IQL) like this:
Owner = ${Reporter}
Otherwise, if you still want the reporter to be able to select any user, you would do something like this for your Filter Issue Scope:
Owner = {customfield_xxxxx}
where xxxxx = the field ID of your first Insight field
@Mark Segall Thanks for the speedy reply, hugely appreciated!
I'm trying to get this up and running, but I think i'm configuring it incorrectly. I've tried both of:
I have two Insights object types:
I have two Custom fields of type Insight Object:
My User custom field (ID 10558) has following config:
My MacBook Serial Number Custom Field has the following config:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you provide a little more context into how the users object type is set up? Specifically, the user attribute - Is it set to type "User" or is it simply a text field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you referring to the Insight User Object-type attribute setup? If so, screenshot below!
And the MacBook insight object config - note the Owner attribute, of type Object pointing at the Users Object type:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So based upon this, it looks like you need to do something like this:
OPTION 1 - Looking up against the current user
object HAVING outboundReferences("Jira User Account" = ${reporter})
OPTION 2 - Looking up against what was selected in the user field
object HAVING outboundReferences("Jira User Account" = ${customfield_10558.Owner})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the Jira User Account attribute isn't important here though, is it?
The Insights Object custom field is pointing at the Users object type. Jira User Account is just an attribute of that Object Type.
And the MacBooks object type Attribute 'Owner' points at the Users object type, not Jira User Account attribute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let's take a step back. Which option of the two are you trying to make work? If option 2, I just realized my last post had the wrong query (let myself overthink it) and should be this:
Owner = ${customfield_10558}
I was missing the "$" on my first post.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Excellent, that works now!
Thanks Mark - appreciate the support! :)
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.