How do I automatically link an Insight Object (PC's) with tickets

Asbjørn Søborg-Madsen April 6, 2022

Hello!

I've tried to get this working all day and I'm finally giving up and asking here.

 

We are using insight to store our hardware Assets ie. laptops and every object has a "User" with type "Person" where we set the current owner of the object.

I have defined a custom field on our Service Requests and I can manually search for Objects if I know the KEY/Name and link it.

However, we want to automate it so that when a Service Request is created we find the Laptop Object with the Reporter set as "User" and link it to the Service Request.

I just cannot figure out how to find the Object and link it.

Here is a screenshot of the object Attributes:
laptops object attributes.png

 

And there is the Automation:

then lookup objects.png

I have also tried with the following queries:
Bruger = Issue.Reporter
Bruger.DisplayName = Issue.Reporter.DisplayName
Bruger IN Issue.Reporter

and edit issue fields.png

 

And every time I get an error with no objects found:
some errors.png

 

How do I get it to return objects? It seems that no matter what I try there's the same "No objects found" - I even tried with a simple KEY = "LAP-0004" and there is still no objects found.

2 answers

0 votes
Jacek June 15, 2024

Did you ever found a way for solve this. I am struggling at exact the same point. Its not possible for me to automatically link the object for the user which has created the ticket

0 votes
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 6, 2022

Hi @Asbjørn Søborg-Madsen 

For your lookup object did you try issue.reporter in braces like this:

Bruger = {{issue.reporter}}
Asbjørn Søborg-Madsen April 7, 2022

Hi @Mark Segall 

Thank you for your reply.

I did try it with the curly brackets, but I get a greyed out "validate syntax" as if the syntax is not permitted.

cannot validate syntax.png

 

If I save anyway and try and run it I get "bad request"

bad request.png

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 7, 2022

The validate syntax grays out whenever you use a smart value so don't sweat that.

I seem to remember issues trying to work with ID information.  Here are a couple more options to try:

Bruger.id = {{issue.reporter}}
Bruger.Name = {{issue.reporter.displayName}}

Ideally you want to match on something that is unique though so hopefully the first option works.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events