You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi Confluence Team,
Using Table Transformer, how can i get name from id for multiple fields.
Hi @Bindiya Chacko,
If you mean that you want to transform the IDs coming from your Jira Issues macro into usernames automatically, then it can’t be done via the Table Transformer macro.
The macro works with the data coming from the Jira Issues macro. So, if your Jira Issues macro returns IDs (and not “pretty” usernames), then the Table Transformer macro also recognizes these IDs and works with them. Only the Jira Issues macro “goes” to Jira to pull your data and the Table Transformer macro just works with the returned results.
So, to get “pretty” usernames in the result table, I can suggest using an additional reference table: “ID” = “Name”. Then you’ll be able to match these records with the required columns from the original table.
Please see the example below:
SELECT 'Project',
'Lead',
'Name' AS 'Approver'
FROM
(SELECT 'Project',
'Name' AS 'Lead',
'ID Approver'
FROM T1 LEFT JOIN T2 ON T1.'ID Lead' = T2.'ID')
LEFT JOIN T2 ON 'ID Approver' = T2.'ID'
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.