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?
thanks