Show usernames instead of realnames

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

This widget could not be displayed.
David Simpson Community Champion 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 :)

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.

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

This widget could not be displayed.

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.

This widget could not be displayed.

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

79 views 0 1
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you