Forums

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

Date smartvalue for "Next Thursday"

Jeanne Schock
Contributor
November 10, 2023

I would like to automate a date field to always be the upcoming Thursday. I've tried variations of dayOfWeek and nothing works.

 

Can someone suggest some smartvalues to try. Thank you.

1 answer

1 accepted

1 vote
Answer accepted
Murat Seven
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.
November 10, 2023

Hi @Jeanne Schock and thanks for your question.

 

Can you try this smart value:

{{now.withNextDayOfWeek(["THU"])}}

Sets the date to the next matching day. If you're already on that day, then it will return the next week. You can use the following values: MON, TUE, WED, THU, FRI, SAT, SUN.

You can following this withNextDayOfWeek.

 

Hope this helps. If the issue is resolved, you can vote and accepted for this comment.

 

Best,

Murat Seven

Jeanne Schock
Contributor
November 10, 2023

Thank you. I was *so* close. I think I was just missing the correct "THU" value.

I did have to change your solution slightly:

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

 

Thanks!

Suggest an answer

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

Atlassian Community Events