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

Anele
May 28, 2024

2024-05-28_12h28_36.pngI am doing an automation that changes the follow up day to the next business day if it is not equal to the current day and the next business day. It is working fine with all scenarios except the one where the follow up date is the same as the follow up date, it still changes it to the next business day

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Bill Sheboy
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.
May 28, 2024

Hi @Anele 

The smart value {{now}} is a date / time value, and I suspect your "Follow up date" field is only a date field.

Perhaps use a format for the dates to ensure they compare accurately for those text comparisons.  For example:

{{Follow_up_date.jiraDate}} does not equal {{now.jiraDate}}

Kind regards,
Bill

Anele
June 3, 2024

Hi Bill, Thanks for the suggestion. However, this also did not help.

Bill Sheboy
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 3, 2024

What did not work as expected?  Please provide examples of the exact scenarios you tried for context.

Also, please post an image of your complete, updated rule and the audit log details showing the rule execution.

 

Until we see those...

It is possible this is the difference in time zones.  I believe values such as {{now}} default to UTC.  Perhaps convert the time zone for now before comparisons:

https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html#Jirasmartvaluesdateandtime-setTimeZonesetTimeZone/convertToTimeZone

Anele
June 18, 2024

Thank you Bill, I ended up using {{now.dayOfMonth}} and it worked