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: 

Smart value {{issue.created.toBusinessDayBackwards()}} does not work

Yen Phan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2023

Hello, 

I'm using the smart value {{issue.created.toBusinessDayBackwards()}} in automation and it returns current day date instead of prior business day {{now.toBusinessDayBackwards()}} also returns current day date. How can I get it return prior business day date? 

Ex; today's is 9/27/2023

Returns 9/26/2023.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Kalyan Sattaluri
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.
September 27, 2023

I am seeing the same behavior.. maybe try {{now.minusBusinessDays(1)}} instead?

1 vote
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.
September 27, 2023

Hi @Yen Phan -- Welcome to the Atlassian Community!

I just did a rule test for an entire month of dates, and the behavior appears to be similar to the other business day function(s):

  • if the source date is a business day, it returns that same source date
  • if the source date is a weekend, it returns the prior Friday

Perhaps work with your site admin to submit a defect to Atlassian Support to learn which is incorrect: the documentation or the function.  Your site admin can submit that  here: https://support.atlassian.com/contact/#/

Kind regards,
Bill

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events