You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
How can i get the userPreferences, being more specific the language a user select's in the profile window?, i am looking for information about the use of UserPreferencesManager, included in Jira 6.1.7 Api.
Community moderators have prevented the ability to post new answers.
Here's a sample if I understood correctly:
String userLocale = ComponentAccessor.getUserPreferencesManager().getExtendedPreferences(user).getString(PreferenceKeys.USER_LOCALE)
hello, i have type the last answer and the result of userLocale in a local enviroment is "null". i have verify with debugger the field user and it is correct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The value will be null if the locale is equal to the default user locale. If that's the case try setting different locale and then see what will the code I've suggested will produce.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried it, and it function well like you said, thanks for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.