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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Is it possible to resolve other macros with in Table Transformer with FORMATWIKI function?

Kamil Graczyk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Mar 16, 2023


what am I trying to do is to create a table transformer sql statement, that will choice the person based on sql statement result.

SELECT CASE T1.'value'
WHEN 1 THEN FORMATWIKI("{profile:user=johndoe}")
ELSE FORMATWIKI("{profile:user=janedoe}") END AS 'Profile' FROM T1;

 Unfortunately it returns me the plain text instead of macro with the profile of the user. 

Is it even possible to do such thing? 

2 answers

1 accepted

0 votes
Answer accepted
Riley Venable (Atlas Bench)
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 16, 2023

Yes, it is possible to display a user's profile using the Profile Picture macro or the User Profile macro in Confluence. However, it seems that the SQL statement provided is not correctly formatting the wiki markup for the macro.

3 votes
Stiltsoft support
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.
Mar 17, 2023

Hi @Kamil Graczyk ,

You may use the Table Transformer macro to transform (reorganize) tables and perform different calculations based on the source tables (manually created or generated by the Jira Issues, Page Properties Report, Content Report Table dynamic tabular macros).

Not sure what macro with what user profile you are trying to get here, but the Table Transformer macro treats its source table as a mini SQL database. So, the result of the transformation is, as usual, another modified table.

And here you may check several examples how the FORMATWIKI function works if required. Note that this function doesn't support formatting of complex macros that dynamically change the content, get data from someplace (for example, User List macro, Expand macro).

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events