Forums

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

Using Advanced compare condition for date fields

Humberto Gomes
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.
August 9, 2023 edited

Hi Comunity, I need your help to troubleshoot (solve) this:


This is my custom field (date and time): "Overtime Start"
ID = customFieldId_11506

ScreenHunter 1732.png

 

 

I'm trying to compare if the time is set after 18:00 using Automation.
This is what I have configured:

{{customFieldId_11506.isAfter(customFieldId_11506.withHour(18))}}

 

ScreenHunter 1733.png

 

The automation runs with no errors, but can't match the condition:

No actions were performed.

(action is just add a comment)

ScreenHunter 1735.png

 

Can you help me?

Thanks in advance

1 answer

1 accepted

0 votes
Answer accepted
Markus W_ BENES
Contributor
August 9, 2023 edited

@Humberto Gomes i think the problem is the .withHours statement; maybe this works for you:

First value:
{{issue.customField_11506.getHour()}}

Condition:

greater than

Second Value:
18

maybe this is also of interest:
https://community.atlassian.com/t5/Jira-questions/Can-t-access-Custom-Field-value-in-Jira-Automation/qaq-p/730676 

Humberto Gomes
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.
August 9, 2023

@Markus W_ BENES  Awesome. It works.

I can't find documentation to see more options for this "get" parameter.

Do you know?

What more "get" options there are?

Humberto Gomes
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.
August 9, 2023

Many Thanks for your Support.

Markus W_ BENES
Contributor
August 9, 2023
Markus W_ BENES
Contributor
August 9, 2023

@Humberto Gomes my pleasure

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events