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,464,990
Community Members
 
Community Events
176
Community Groups

How do I change text color for a row by FORMATWIKI?

I pulled out PIMS info from Jira and let it showed on Confluence. I want to change to text color to be grey for those PIMS which status is already closed.  

I've read some information on Advanced table cells formatting

It seems that I could use FOMATWIKI command for this case. However, there is no sample for changing text color for a row.  I want the table shows like below..

擷取.PNG

It will be much appreciated if someone could help me. Thank you.

1 answer

1 accepted

Hello Kelly,

When using Table Transformer (which is a macro from our Table Filter and Charts for Confluence app) you can use the following SQL query for the table as provided by you:

SELECT
FORMATWIKI("{cell:textColor=" + 'Color' + "}" + 'Keys' + "{cell}") AS 'Keys',
FORMATWIKI("{cell:textColor=" + 'Color' + "}" + 'Status' + "{cell}") AS 'Status',
FORMATWIKI("{cell:textColor=" + 'Color' + "}" + 'Created' + "{cell}") AS 'Created'
FROM
(SELECT *,
CASE
WHEN 'Status' = "Closed" THEN "lightgray"
ELSE "black"
END AS 'Color'
FROM T1)

Best regards,

Alexey

It works!!!

Thank you, Alexey :)

Hello Kelly,

I am glad to hear it helps.

Best regards,

Alexey

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events