Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Set Insight objects to a Jira ticket by an automation


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

1 accepted

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. 

Hi Razvan, not sure if you found an answer to this but you can actually use a smart value inside a lookupobjects iql query.  Your query should look like this: 
objectType = Laptops and "Jira User" = {{reporter}}. This is, if your object attribute is of type user.

Suggest an answer

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

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

320 views 0 10
Join discussion

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