Conditional formatting for table cells in wiki markup or other method?

I'm using Confluence 4.2, and have a table I created with Wiki Markup, that I'd like to add some conditional formatting to.

Is there a way to do that? The solution does not necessarily have to be Wiki Markup, but it does have to be something I can add programmatically.

Thanks!

3 answers

1 accepted

Hi,

I don't think that you can do conditional formatting easily.

The only way that I can think of to create an excel speadsheet with all conditional formatting and embed it to the Confluence with Office macro.

Or you can create javascript code and apply a format (CSS) to a row/column/cell by a defined condition.

I hope it helps.

Cheers,

Selcuk

For unique situations like this, consider scripting it using Script Plugin for Confluence and/or HTML Plugin for Confluence

Thanks, I'll check those out when I get more time. For now, I'll call it "good enough."

Hello!

For conditional formatting in Confluence you may use CelesteCS Conditions for Confluence.

Assume you need to set a specific background color for some values on your table, for example, for 'Yes' make it light-green and for 'No' make it light-red. You just put your table into Conditional Rules Manager macro and add two Conditional Rule macros to specify rules of type 'Element Value Is Equal To', which is by default. In one of the rules you specify 'Value 1' = 'Yes' and 'Background color' = 'highlight-green' and in another one 'Value 1' = 'No' and 'Background color' = 'highlight-red'. That's it! The cells will be formatted appropriately.

As you see, it's very simple - just add a couple of macros and configure it properly. No need for doing it manually, writing user macros or use source code editors.

There are more than a dozen of conditional rule types supported. Plus, you may replace the text, not just to format it.

We are the CelesteCS Conditions for Confluence plugin vendor, so you may contact us directly if you have any additional questions or suggestions.

Thanks!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

264 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you