Forums

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

Update date to output as YY/MM

Jon Parker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2025

I have an automation to add the jira.date to a field when a status is changed. I'd like to also have a secondary custom field where this date is reflected as "YY/MM". 

2 answers

1 vote
Trudy Claspill
Community Champion
May 23, 2025

Hello @Jon Parker 

Welcome to the Atlassian community.

That secondary custom field will have to be a text field because it is not possible to specify different date formats for different fields.

You can use the date/time format commands to get the date in the format you want and put that into the custom field.

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

A link to the Java documentation for formatting options is found in the last row in the first table in the above page. I believe you would use:

{{issue.YourDateField.format("YY/MM")}}

 

1 vote
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.
May 23, 2025

Hi @Jon Parker -- Welcome to the Atlassian Community!

Is that other custom field a text field?

If so, you may use the format() function with the layout needed:

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

Kind regards,
Bill

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