I'd like to be able to configure a pick list for the status macro when using it in a template. As an example, I'd like to be able to pick Grey with the title Draft, Yellow with Submitted, Blue with In Test & Green with Completed.
You can, but you need to create a user macro to do it. Here is an example of the user macro setup.
Macro Body Processing:
## Developed by: Davin Studer ## Date created: 10/20/2015 ## @noparams #if ($body && $body != "") #if($body == "Status 1") #set ($color = "aui-lozenge-success") ## greeen #elseif ($body == "Status 2") #set ($color = "aui-lozenge-current") ## yellow #elseif ($body == "Status 3") #set ($color = "aui-lozenge-error") ## red #elseif ($body == "Status 4") #set ($color = "aui-lozenge-complete") ## blue #else #set ($color = "") ## gray #end <span class="status-macro aui-lozenge $color">$body</span> #end
Change the values in the user macro to match the values in your template list variable. When you setup the template put the user macro on the page and put the template variable into the body of the user macro.
You won't see the status macro in edit mode, but when the page is viewed you will. It will still even work with things like the page properties and page properties report macros.
Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time! We're looking for people to participate in a remote 1-hr workshop...
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