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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,329
Community Members
 
Community Events
176
Community Groups

Need a Smart Value for a Bilingual Issue Description

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 Feb 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 Feb 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

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

Atlassian Community Events