How to set a due date using startOfWeek

Mitchell Mudd June 1, 2022

Screen Shot 2022-06-01 at 10.41.08 AM.png

Here is basically what I'm trying to accomplish. If you move the issue Thursday-Monday it gets assigned to Tuesday and if you do it Tuesday or Wednesday it goes to thursday. I'm having issues getting my advanced compares / jql stuff to work :(

1 answer

1 accepted

2 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.
June 1, 2022

Hi @Mitchell Mudd 

I wonder if instead you could just check the day of week directly, using format(), and then use the function withNextDayOfWeek() as it seems to do what your use case requires

{{now.withNextDayOfWeek("TUE")}} or {{now.withNextDayOfWeek("THU")}}

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

Kind regards,
Bill

Mitchell Mudd June 2, 2022

Ahhhhh this is definitely one of those cases of "Should've read the documentation closer" haha! Thank you so much Bill! I got it working now :) Cheers

Like # people like this

Suggest an answer

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

Atlassian Community Events