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.
Hey,
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?
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.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.