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

0 votes
Samuel Gatica _ServiceRocket_
Community Champion
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

Suggest an answer

Log in or Sign up to answer