Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I write an IQL query that excludes objects last updated by a particular user?

Alex Mclean January 26, 2022

I'm trying to set up automation rules in Insight that create a Jira service desk ticket when an object is updated.

But I need updates made by some users to be excluded, tickets shouldn't be created when they update an object. How can I use IQL to filter out certain users?

1 answer

0 votes
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2022

You can't do that with IQL. 

IQL only interacts with object attributes. It doesn't have any functions to get values from the Change History.

You would have to somehow store the "last updated by" user as a separate attribute and update that attribute each time an object changes. Then you can use the IQL to exclude that. 

This would require a groovy script automation action.

But if you are scripting an automation action, then might as well go straight to your business requirement and encode both the user lookup and the ticket creation.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events