Forums

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

Smart Value for the Upcoming Week

Gor Greyan
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 Champions.
February 16, 2026

Hi Dears,

I want to get the upcoming week's first day in my summary via Jira automation, but I couldn't find the smart value for that.

For example.
Today is 2026-02-16, and I want to get the date 2026-02-23.

Thanks in advance.

3 answers

1 accepted

0 votes
Answer accepted
Gor Greyan
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 Champions.
February 19, 2026

Dears, I get this one, which retrieves my needed date.

It was impossible to set it in the summary, as it exceeded the 256-symbol limit, but I did it via a custom field, then copied it to the summary.

{{#if(now.format("e").equals("1"))}}{{now.plusDays(1).format("yyyy-MM-dd")}}{{/}}
{{#if(now.format("e").equals("2"))}}{{now.plusDays(7).format("yyyy-MM-dd")}}{{/}}
{{#if(now.format("e").equals("3"))}}{{now.plusDays(6).format("yyyy-MM-dd")}}{{/}}
{{#if(now.format("e").equals("4"))}}{{now.plusDays(5).format("yyyy-MM-dd")}}{{/}}
{{#if(now.format("e").equals("5"))}}{{now.plusDays(4).format("yyyy-MM-dd")}}{{/}}
{{#if(now.format("e").equals("6"))}}{{now.plusDays(3).format("yyyy-MM-dd")}}{{/}}
{{#if(now.format("e").equals("7"))}}{{now.plusDays(2).format("yyyy-MM-dd")}}{{/}}

Aron Gombas _Midori_
Community Champion
February 20, 2026

Hah, I like your solution with the smart values. 

Like Gor Greyan likes this
0 votes
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 Champions.
February 16, 2026

Hi @Gor Greyan 

Please see these supported date / time function for Jira Data Center rules to find what you need.  You will need to chain together functions and then add the formatting you want in the Summary.

https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html

 

Kind regards,
Bill

0 votes
Aron Gombas _Midori_
Community Champion
February 16, 2026

To get the first day of the upcoming week (assuming Monday is your start of week), use this smart value:

{{now.plusWeeks(1).toMonday}}

If you want the date formatted exactly like your example (2026-02-23), you should add the formatting string:

{{now.plusWeeks(1).toMonday.format("yyyy-MM-dd")}}
Gor Greyan
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 Champions.
February 16, 2026

Hi @Aron Gombas _Midori_

Tried this one, but it returned an empty value.
I tested it in the log action before the summary change.

Danno
Community Champion
February 16, 2026

@Gor Greyan please upload an example of what you are trying to do. Is this an automation rule you are working on? What or where does the Summary you are trying to update located?

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 Champions.
February 16, 2026

Hi @Aron Gombas _Midori_ 

I do not believe there is a toMonday function.  Where did you find that one in the docs?

Thanks and kind regards,
Bill

Aron Gombas _Midori_
Community Champion
February 16, 2026

TBH I wrote this from the top of my head, and I was mixing it with one of our internal method names (from an internal "DateUtils" Java class) that we use in Velocity expressions.

Looking this again, I realize that there is a withNextDayOfWeek() method but even that one is specific to Cloud.

Sorry for the confusion.

Like # people like this
Gor Greyan
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 Champions.
February 19, 2026

@Danno

It is an automation rule.
It is being opened by automation, but in summary, there is a need to write the day of the next Monday.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events