Forums

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

Custom date format with language

Soluciones TIC
Contributor
February 25, 2023

I am using this smart value to enter a comment the month before the current one with a specific format, but I require it in Spanish "Enero" and not "January".
Is that possible?

Captura de pantalla 2023-02-25 160145.png

2 answers

1 accepted

2 votes
Answer accepted
Soluciones TIC
Contributor
February 28, 2023

Hello. I share the solution found thanks to Atlassian’s support.

{{now.minusMonths(1).locale("es").format("MMMM yyyy")}}

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.
February 28, 2023

Thanks for that information!  You may want to suggest to the support team to add that function to the automation documentation for date/time functions:

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

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 Leaders.
February 25, 2023

Hi @Soluciones TIC 

I do not believe that is supported with the built-in date/time handling.  And I did a quick test to see if automation's format() function could handle the locale parameter with Local.getDefault() and that returned null.

Checking the public Jira and Automation backlogs, I could not find an open suggestion or defect for this, so I recommend you submit a ticket to Atlassian support to see what they suggest.  You appear to be the site admin for a paid Jira license, and so can submit the ticket here: https://support.atlassian.com/contact/#/

Please post what you learn from them in this thread so others can benefit from the information.

Kind regards,
Bill

Soluciones TIC
Contributor
February 28, 2023

Thank you @Bill Sheboy 

Like • Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

đź›— Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events