we need a macro or plugin which enables us to create conditional fields. Just like Excel does: based on the value of a field, another field will be set to a custom value. More specifically our management likes the green-yellow-red status macro and we'd like to implement that based on the value of a field then the status will change to green (good) or red (bad). Is it somehow poosible?
Thanks in advance,
What do you mean by field? Is this something that is enetered by a user, is it changed automatically by some system, is it getting it from a web service? How is the "field" data changing?
Color CSS Classes ---------------------------------------------------------- Grey status-macro aui-lozenge Red status-macro aui-lozenge aui-lozenge-error Yellow status-macro aui-lozenge aui-lozenge-current Green status-macro aui-lozenge aui-lozenge-success Blue status-macro aui-lozenge aui-lozenge-complete
I mean that I would have a table in Confluence. There is a cell where I add number value. Based on this number another field would have various value: e.g. if the number cell has value of 100 then the other value gets text value: Good, if the number cell has value of 30 then the text cell gets value of Bad.
Sorra for confusing you with fields. In fact there are no fields in Confluence, it's JIRA:). I talk about a table in Confluence.
Thanks in advance,
Macro Body Processing:
Is it possible to convert JIRA data to colors when presented in Confluence using a similar script, or does the above script only work if you manually enter data into a table in Confluence?
Example: We have a JIRA field 'Health' = At Risk, which would be associated as a YELLOW. Our Confluence page uses JIRA Filter Results to present a status report that includes several fields, including Health. We need to show the Health as Yellow on the Confluence page without manual data entry – just rely on the JIRA data.
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.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
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...
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!
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