Show usernames instead of realnames

Erik-Jan Riemers May 26, 2012

Like the topic says, how do i only show the usernames instead of the realnames on jira/confluence when people made updates to it. Since we use it in out community they usually prefer their "nickname" rather then the full name. Forcing everyone to use a nickname is then easier then forcing their full name. (otherwise you get those mixed realnames/nicknames)

3 answers

1 accepted

0 votes
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 26, 2012

In Confluence, you could do this fairly easily with a bit of JavaScript...

Browse to Confluence Admin | Look and Feel | Custom HTML

In At the end of the HEAD, paste:

<script>
AJS.toInit(function(){
  AJS.$('a.confluence-userlink').each (function(){  
    AJS.$(this).text(AJS.$(this).attr('data-username')); 
  });
});
</script>

Likely with JIRA, it would be a bit more complicated because of all the 'AJAXy' functionality.

Another workaround would be to just populate the Display Name with the same text as the username on account creation, then disable the ability for a user to change their display name :)

Erik-Jan Riemers May 27, 2012

Really like the confluence sollution, would be really nice if something so simple was for jira too. And ofcourse i can chuck the username into display name but i want people to have the option.

Erik-Jan Riemers May 27, 2012

As a side note to your sollution, it only works when users are logged into confluence, so its still a mixed one then :)

0 votes
Anne_Linden April 8, 2015

If you're an admin you can go to User Management, find the User Directories and select the one containing your users.  At the bottom there should be a User Schema Settings section which you can use to adjust the username.

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2012

You can write a User Format plugin to define a new user format and then configure JIRA to use that format everywhere.

The new user format can use the username instead of fullname in the velocity template.

Suggest an answer

Log in or Sign up to answer