Forums

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

Using Updated as a query filter for lookupobjects

Ste404
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.
November 20, 2022

Hi there,

I want to put into a query for a lookupobjects call a limiter to only return records that were updated within the last 4 hours.

So I have this for example

ObjectType = Laptops and "Name" IS NOT empty AND "Model_d" IS NOT empty 

 

but when I put any sort of variant of 'AND Updated #####' the query fails.

Can I use updated as part of a query for lookupobjects?

2 answers

2 accepted

3 votes
Answer accepted
Joseph Chung Yin
Community Champion
November 20, 2022

@Ste404 -

Yes, you just need to add the following to your JQL 

updated >= -4h

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

1 vote
Answer accepted
Dawid Joshua _TechTime_
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.
November 20, 2022

Hi @Ste404 ,

Try this:

<your query> AND updated >= -4h 
Ste404
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.
November 20, 2022

ah gaaaawd I was forgetting the -

 

<insert facepalm here>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events