Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Need a Smart Value for a Bilingual Issue Description

Vincenzo Ciaravella February 21, 2022

I'm working in a Jira Data Center environment and cannot seem to find a Smart Value in Jira Automation that will allow me to insert a Smart Value in the French language for "Months" of the year.  I have identified the proper English ones but when I try to apply Smart Value functions (found on the "Cloud documentation") pertaining to Language I get no results.  I got no errors but no results either (see list of Smart Value attempts below)

  • {{now.format.withLocale("fr").mediumDate}}
  • {{now.format.locale("fr_CA").mediumDate}}
  • {{now.format.withLocale("fr").asLongDateTime}}
  • {{now.format.locale("fr_CA").longDateTime}}
  • {{now.format.withLocale("fr").mediumDate}}
  • {{now.format.locale("french_CA").mediumDate}}
  • {{now.format("MMMM").withLocale("fr_CA")}}

The ones that I need that are functioning in English are:

  • {{now.format("MMMM yyyy")}}
  • {{now.format("MMMM")}}
  • {{now.endOfMonth.format("MMMM dd, yyyy")}}
  • {{now.lastBusinessDayOfMonth.plusBusinessDays(1).format("MMMM dd, yyyy")}}

Any idea on how to successfully translate the month to French in each of my English examples?

Thanks,
Vince

1 answer

1 accepted

2 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2022

Hi @Vincenzo Ciaravella ,

seems like working on my side:

image.png

 

Have you tried to first use the .locale() and then the .format() ?

following smart value worked for me:

 {{now.locale("fr").format("MMMM yyyy")}}



Please let me know if this helps.

Best
Stefan

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2022

Hi @Vincenzo Ciaravella ,

Is there any feedback on the suggested solution? Could that be tested already?

In case the solution works please consider to accept the answer in order to get this question marked "solved" and make it easier for other users to find solutions to their problems.

Best
Stefan

Vincenzo Ciaravella February 24, 2022

Thanks Stephan!!!  That was exactly what I was looking for!!!

Cheers

Vince

Like Stefan Salzl likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events