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

0 votes
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 :)

0 votes

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.

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,957 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot