Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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!
Sep 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

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.
Sep 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