Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,553,225
Community Members
 
Community Events
184
Community Groups

Confluence Table Transformer: how to get name from id for multiple fields?

Hi Confluence Team,

Using Table Transformer, how can i get name from id for multiple fields. 

Screenshot 2023-04-02 at 7.56.39 PM.png

1 answer

4 votes
Katerina Rudkovskaya _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 03, 2023

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:

Mon 1-1.png

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'

Mon 1-2.png

Hope it helps.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events