Forums

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

smart values to pick last 2 digits of the year

Chaitanya B
Contributor
February 22, 2023

Hi Community,
how to pick up the last 2 digits of the year using smart values, here I want only 23, not 2023,
this smart value I am using at this moment {{now.mediumDate}}.
date.PNG


Thank you.

2 answers

1 vote
Trudy Claspill
Community Champion
February 22, 2023
1 vote
Najm Polaris
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.
February 22, 2023

Hi @Chaitanya B ,

You may want to use shortDate to just return the last two digits of the year but the month is returned in number with this. 

Check out this documentation it will help https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

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