'm trying to setup a RAG (Red, Amber and Green) status for all my projects based on the following co
Asked by suvarna dixit:

I'm trying to setup a RAG (Red, Amber and Green) status for all my projects based on the following conditions

Red: Time Spent is 20% over Original estimate Amber : Time spent is 5% over Original Estimate Green : Time spent is \< = Original Estimate


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@suvarna dixit](/t5/user/viewprofilepage/user-id/4658315) ,

We can suggest trying our app - [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=versions).

It's [Table Transformer](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro) macro allows you to set statuses based on different conditions (the macro works with manually created and Jira generated tables).

Here is an example regarding your case:

![Fri 3-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/172089i6AA89BF1A479ECFA/image-size/large?v=v2&px=999 "Fri 3-1.png")

SELECT \*,  
CASE  
WHEN (T1.'Time Spent, h'\*100/T1.'Original Estimate, h' - 100) \>= 20  
THEN FORMATWIKI("{status:colour=Red\|title=Red}")  
WHEN (T1.'Time Spent, h'\*100/T1.'Original Estimate, h' - 100) \>= 5 AND (T1.'Time Spent, h'\*100/T1.'Original Estimate, h' - 100) \< 20  
THEN FORMATWIKI("{status:colour=Yellow\|title=Amber}")  
ELSE FORMATWIKI("{status:colour=Green\|title=Green}")  
END AS 'RAG Status'  
FROM T\*

![Fri 3-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/172090iB4C3A13FBA639535/image-size/large?v=v2&px=999 "Fri 3-2.png")

Maybe this may help your case.

comments: author: suvarna dixit
body: to use this what s the price


author: suvarna dixit
body: If just want to showcase if due date is \> 31 dec then AMBER

Due date = \<today\> then red

any suggestion in Jira or confluence


author: Katerina Kovriga {Stiltsoft}
body: You'll be able to compare dates via the Table Transformer macro as well, here is a somewhat [similar example](https://community.atlassian.com/t5/Jira-Software-discussions/display-sprint-status-as-Ongoing-Not-started-Finished/td-p/1876949) from the Community (the last comment).

The cost of the app for different tiers is [shown on the Marketplace](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=pricing).


author: Katerina Kovriga {Stiltsoft}
body: Hi there,

As this question mentions our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community) app, we are happy to introduce its new macro -- [Table Spreadsheet](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Spreadsheet+macro?utm_source=atl_community).

The macro allows you to work with fully functional Excel spreadsheets right in Confluence.

You'll be able to use cells' formulas, filters, conditional formatting, etc., create pivot tables and charts from the page view and edit mode.

The Table Spreadsheet macro is available for Cloud and Server/Data Center.

![](https://docs.stiltsoft.com/download/attachments/83100938/Conditional%20formatting.png?version=1&modificationDate=1641987630000&api=v2&effects=border-simple,shadow-kn)


Tags: atl-orange

atlassian-marketplace

confluence-server

marketplace

server