JIRA "project" table contains old usernames


I'm trying to semi-automate the generation of a report.  Using the simple query: select pname, pkey, lead from project order by pkey; gives me project name, project keys and project lead usernames.  Unfortunately the leads are not always those individual's current user names.  

e.g.  We had a user jane o'connor.  Initially her Active Directory account name was jane.o'connor.  JIRA was fine with it, but not all of our tools were.  So we changed it in AD to jane.oconnor.  When I pull my list of project leads, it still includes jane.o'connor.  Even if I make myself the project lead (verify my name in in that table) then change it back to Jane, her old username is still in the table.

Any suggestions on how to either populate that table with current usernames OR write a sql that will pull their current usernames?



1 answer

1 votes

Your user name change won't be reflected in the project table. Your old user name will be used as the user key and the actual renaming will happen in the app_user table.

Love it. Now I have the following: select pname, pkey, lower_user_name from project INNER JOIN app_user on (project.lead = app_user.user_key) order by pkey; What table holds their email addresses?

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,804 views 11 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