Forums

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

Automation: Advanced Compare Conditions for Issue Creation Time

Sami
Contributor
August 18, 2021

Hello there,

I am seeking to achieve the following scenario using "Automation For Jira".

Custom Field:

Created outside working hours: (Radio Button)

  * Yes

  * No

Scenario:

If the ticket is created after the working hours (18:30 - 7:30) then custom field should show YES or else it should show NO.

 

How to achieve the above scenario using Advanced Compare Conditions of Automation for Jira Add-on.

 

Regards,

Sami Ahmed Shaik.

1 answer

0 votes
Ismael Jimoh
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 18, 2021

Hi @Sami 

You can try building this using time values returned as described here: https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/

With that you can check if the time is after a specific hour.

I hope it helps.

Regards

Sami
Contributor
August 19, 2021

Ismael,

 

Thanks for the response. I am trying to achieve using the following way but its not helping me out, always value is set to NO.

 

Screenshot from 2021-08-19 12-36-41.png

 

where I am doing wrong? 

 

--

SSA.

Ismael Jimoh
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 19, 2021

Hi @Sami 

Please use {{issue.created.convertToTimeZone("CET").format("HH:mm")}} instead.

Replace CET with your time zone.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.18.1
TAGS
AUG Leaders

Atlassian Community Events