Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Set Insight objects to a Jira ticket by an automation

Hello,

How I can set automatically an insight custom field on a ticket based on the Reporter of the ticket.

Manually is working by configuring the Insight custom field as described below:

Insight Custom field config.jpg

When I try to edit the field, only the objects related to the reporter are displayed.

But when I try to use the same Filter to populate the field automatically when the ticket is created, the objects that are brought in the field are totally different (and not related to the reporter).

Insight automation.jpg

1 answer

Try using the "Lookup Objects" action to find the objects you want, then assign them to equipment with: Key IN ({{lookupObjects.objectKey.join(",")}})

The Issue Scope IQL is so new that I wouldn't use it in this way, I'd specify a Filter Scope to at least narrow it with "objectType IN objectTypeAndChildren(<parent object type>)".

Anyway I'm not entirely sure what's going on here, Insight Cloud is a bit weird with Atlassian Accounts and user attributes anyway. It's safest to separate the search action from the field editing action, because then you can inspect what's returned through an Audit Log action.

I've tried to use Lookup Objects, but I didn't manage to obtain any assets. I've used this filter:  objectType = Laptops AND object HAVING outboundReferences(objecttype = Users AND "Jira User" = currentReporter()) filter) 

in order to obtain all the laptops related to the Reporter. When I am using the same filter on IQL advance search field and change currentReporter() with currentUser() it is working... only laptops related to current user are displayed. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

93 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you