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: 

Automation for Jira smart value date + time

Urmo
Contributor
November 14, 2022

Hi

I try to build some automation with Automation for Jira solution.

I run cron every 3 thursday 19:00 (0 00 19 ? * 5#3). Cron create issue with start time and end time.

Start time: {{now.plusDays(7).jqlDateTime}}

End time: {{now.plusDays(7).plusHours(6).jqlDateTime}}

Idea is that one ticket is created one week before and added datetime. Or there is better solution that i can create issue one week before last thursday every month with same start time and end time.

Start time should be added 24.11.2022 19:00 and End time should be added 25.11.2022 01.00 AM. In december it should be 22.12.2022 19.00 Start time and end 23.12.2022 01.00.

Issue is created but no Start or End time is added. What i did do wrong?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Samuel Gatica _ServiceRocket_
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.
November 14, 2022

Hi @Urmo 

Try using the following for start and end time:

Start time: {{now.plusDays(7).jqlDate}}

End time: {{now.plusDays(7).plusHours(6).jqlDate}}

 

ref: Jira smart values - date and time

 

Regards

Sam

Urmo
Contributor
November 14, 2022

Seems to be that something is still wrong, it did not add start and end time.

Capture.PNG

Probably still wrong time format?

Capture2.PNG