The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Lookup Objects, trying to derive dates happening Today

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 Champions.
June 28, 2023

Hi all,

I have a scheduled automation that runs at 3am.  I would like to return all the items from Assets that have a date from a particular field that will happen on the day the scheduled automation runs.

I need to set a value for 'Inspection' in Assets to True if the 'Inspection Date' for an item is on the day the automation runs.

I just can't put the lookupObjects query together to come up with the narrow on this day information to be returned.  I can't use startofDay() or endofDay() it seems also in the query, so not sure how to wrangle this.

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
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 Champions.
June 28, 2023

leveraged the above as a start date variable and added this for the end date variable

 

.plusDays(1)

 

I have my start and end period for the current day as variables.

1 vote
Answer accepted
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 Champions.
June 28, 2023

ok I can come up with the start of the day

{{now.toDateTimeAtStartOfDay("Australia/Sydney").shortDateTime}}

I can't see how to do the same for the end of the day

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events