I am looking for a scalable solution that would allow me to display company / affiliation of jira usernames near ther name.
It seems that Atlassian already implemented this on Answers (OSQA) but failed to add this feature to their own products.
The use case is the same: you want to see who is from inside, who is a partner or a customer. Email address is a good source of information, still it cannot replace the username.
John Doe with firstname.lastname@example.org having username johnd should appear as "johnd [acme]" or "John Doe [acme]" when the full name is displayed.
How to implement this?
Note: this has to be implemented at view level, modifying the database is not a solution because username, and full names can be stored in external directories (LDAP).
It's not implemented in OSQA the way you have described. There's a field on the profile that you can fill in and it gets appended. You can put anything you want in there, it's nothing to do with your email address, website or anything else.
Try whacking a random string in there. As an example, I can set mine to Kitteh, my email to a home address, my website to a company one, and they all come out differently. It's just a string. I could put "Atlassian" in there if I felt like it. (I don't, I'm not working for them)
It gets harder in Jira because there's no such thing as "user fields". It simply doesn't have a way to tag fields to users. (There are user properties, but they're too inflexible to be useful in this way)
There's a number of requests for user-level fields in Atlassian's Jira, but I suspect they won't really get done - the place for user details is in a user management system (e.g. Crowd) and I think the best you'll get in Jira in the long run is "display user information from your user management system"
Thanks Nic, in fact I am looking for a solution just to alter how the full name is rendered by jira, as I can include the logic of what to append inside the altering code. I do not need to store additional information about the users, I already have everything I need for them: username, email and full name.
Another idea woudl be to change how you render usernames and even their icons based on the group memberships.
Unfortunately, that seems to be for V4. I don't know if it works in V5 (I was only looking to use a nicer format that the one I'd whacked into a plugin because I didn't know any better)
I'm pretty sure there's a handful of user renderers in later versions of Jira, and you can add your own. If the information you want to display is already in Jira somewhere, then writing one of those would probably solve the problem. Although you may want to override one of the built-in ones rather than add a new one.
I was only looking at this the other day (for something unrelated). Give me a sec to dig through my browser history.
In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to have–in order to produce a reliable long-term roadmap. We're tur...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs