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

1 vote
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 Leaders.
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events