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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

User language in velocity templates

Hi, I am customising templates for sending automatic e-mails to customers when they open a new ticket.

image.PNG

Our customers have different native languages. So I would like the automatic e-mail to be in the right language. However, I cannot access the information from the velocity template.

I have tried to access the class UserPreferencesManager but it is not accessible from velocity. I also tried to search for the class with $content but it is also not accessible from velocity. In UserPropertyManager I didn't find a language property.

Does anyone know a way to do this?

1 answer

1 accepted

1 vote
Answer accepted
brbojorque Community Leader Jan 21, 2021

Hi @Luca ,

I kind of experienced the same issue with yours actually, I'm trying to access something from the JAVA API but it was not accessible from the plugin. 

What I did is contact the add-on vendor and have then double-checked if the user preference is accessible in the velocity template the last time they've added it.


Thanks for your advice. I spoke to the vendor and he told me that it is most likely not possible to find the customer's language in velocity templates.

brbojorque Community Leader Jan 21, 2021

Hi @Luca ,

I'm not sure if this helps but the workaround is to add a customfield language and have the condition around that new language custom field in the velocity.

The downside is you have to update them manually for each issues unless you have an automation to set it up based on the user, group, or other factors.

Like Luca likes this

Thanks for the advice. I solved my problem in this way!

brbojorque Community Leader Jan 25, 2021

Hi @Luca , if you don't mind can you accept my answer so other people can find it helpful as well :)

Like Luca likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you