stash set author display name to use email instead of user name

Is it possible to change the display name stash users to display the author of each commit? Currently it shows the authors user name and I was wondering if that can be changed to show the authors email address. Sort of how you can do "git blame --show-email [file]". So I want to use email as the display name in the stash repository browser when browsing the repo.

1 answer

Hi,

I'm afraid that we don't currently have any mechanism for displaying that information in Stash. I suspect your best bet is watch/vote for this issue, which is about linking a committer to a user profile page (or some fallback):

https://jira.atlassian.com/browse/STASH-3235

Cheers,

Charles

Hi Charles, thanks for the quick reply. The issue you referenced isn't exactly what I was looking for, although I do think that feature would be nice too. My question and issue is merely for display purposes on existing UI. My company is using ldap for authentication so every comitter's user name is each users issued company id which is meaningless for developers. If you want to see who made a change, it requiers looking at the committers Id and than looking that id up in our company directory, pretty tedious! I took a screen shot of it on jing, this might help explain it better: http://screencast.com/t/7rxsHCQRf

Basically we would like to configure the stash UI to display the author as author.email instead of author.username. Does that make sense and is that possible?

Hi,

Sorry, I wasn't suggesting that the above issue was exactly what you were looking for, more that it's something that we plan on doing and will require a change to how we show the author. I imagine that by looking up the user details at that point we could also display their 'name' rather than what's recorded against the commit (unless the user couldn't be found). I think that would then be roughly equivalent to what you're looking for?

Something that I forgot to mention that might be able to help in the short term is our upcoming support in 2.5 for '.mailmap' files, which would allow you to override the displayed userid with a real name. This has the extra benefit that you would get the same result when running Git locally.

https://jira.atlassian.com/browse/STASH-3084

Other than that I'm not sure if we have any intention to reveal the email address as well. I will have to ask someone on my team and get back to you.

Cheers,

Charles

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

710 views 0 4
Read article

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