How can I retrieve just the date from {{now.plusBusinessDays(6)}}? I don't need entire Timestamp.

Abhilasha Tyagi
Contributor
October 11, 2024

I need date to be added in the summary of a issue created automatically via rule. I am using the below smart value but it does return a Timestamp. Is there a way to retrieve just the date?

 

{{now.plusBusinessDays(6)}}

2 answers

2 accepted

4 votes
Answer accepted
pinky_reddy
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.
October 11, 2024

Hi @Abhilasha Tyagi 

Welcome to Atlassian Community

Can you try using this 

{{now.plusBusinessDays(6).shortDate}}
1 vote
Answer accepted
Tobias H
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.
October 11, 2024

Hi @Abhilasha Tyagi and welcome to the Community!

Yes, if you slightly change the smart value to 

{{now.plusBusinessDays(6).jiraDate}} or, if you want to set the date format yourself you can do so with {{now.plusBusinessDays(6).format("yyyy-MM-dd")}} and select the format you like. All different extra formats can be found here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

Best, Tobias

Abhilasha Tyagi
Contributor
October 11, 2024

Thank you Tobias! It worked. I used   {{now.plusBusinessDays(6).shortdate}} for the desired result using the formats link.

Like Tobias H likes this
Tobias H
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.
October 11, 2024

Awesome, happy to hear!

Have a nice weekend :D

Suggest an answer

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

Atlassian Community Events