Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Conditional Due Date

Val Gendleman August 23, 2024

Hello! I'm creating a recurring task issue via automation. I want to set a due date of Sept. 13 every other year, unless the 13th is a weekend, in which case I'd want the due date to fall on the previous business day.

Thanks in advance for your help!

 

Val 

1 answer

1 accepted

0 votes
Answer accepted
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.
August 23, 2024

Hi @Val Gendleman 

Without seeing the specifics of your rule...you could check if the date is on a weekend using the format() function, and if so make an adjustment using the toBusinessDayBackwards function:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-format---

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Previous-business-day---

Kind regards,
Bill

Val Gendleman August 26, 2024

Thank you, @Bill Sheboy . This is really helpful. I'm just getting started using smart values and am wading through. I'll let you know how it turns out. 

Best,

Val

Val Gendleman August 26, 2024

Thanks again, @Bill Sheboy -- you set me on the right track and I got the automation to work! I had an ongoing fixed due date of Sept 13, except when that date falls on weekends. I made the due date Sep 14 and used the BusinessDayBackwards function to ensure that the new task always appears on a business day. 

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events