Conditional Rule macro checks the conditions for applying formatting options to conformant elements. This macro must be used inside Conditional Rules Manager macro.

Conditional Rule macro has the following parameters:

  • [Enum] Rule condition (default=”Element value is equal to”) – the type of condition to be checked. Based on this type Value1, Value 1 + Value 2 or none of them may have to be specified. May have one of the following values:
    • Element value is between
    • Element value is not between
    • Element value is equal to
    • Element value is not equal to
    • Element value is greater than
    • Element value is less than
    • Element value is greater than or equal to
    • Element value is less than or equal to
    • Element text contains
    • Element text does not contain
    • Element text begins with
    • Element text ends with
    • Element is blank
    • Element is not blank
    • Element is a numeric value
  • [String] Value 1 (default=empty) – the first parameter of the condition (where applied).
  • [String] Value 2 (default=empty) – the second parameter of the condition (where applied).
  • [Boolean] Stop if true (default=false) – specifies whether to stop consequent rules processing over the conformant element.
  • [Enum] Bold text (default=”Keep original”) - specifies, whether to apply bold style to the conformant element's text. If this parameter is set to “Keep original”, the bold style will not be changed. May have one of the following values:
    • Keep original
    • Apply style
    • Remove style
  • [Enum] Italic text (default=”Keep original”) - specifies, whether to apply italic style to the conformant element's text. If this parameter is set to “Keep original”, the italic style will not be changed. May have one of the following values:
    • Keep original
    • Apply style
    • Remove style
  • [Enum] Underline text (default=”Keep original”) - specifies, whether to apply underline style to the conformant element's text. If this parameter is set to “Keep original”, the underline style will not be changed. May have one of the following values:
    • Keep original
    • Apply style
    • Remove style
  • [String] Text color (default=”Keep original”) - specifies whether to apply a specific color to the conformant element's text. Set to "Keep original" to keep the original color. May have one of the following values:
    • Keep original
    • CSS colors
      • aquamarine
      • green
      • and so on…
    • Hex colors
      • #FFCCCC
      • #555555
      • and so on…
  • [String] Background color (default=”Keep original”) - specifies, whether to apply a specific background color to the conformant element. Set to "Keep original" to keep the original color. May have one of the following values:
    • Keep original
    • CSS colors
      • aquamarine
      • green
      • and so on…
    • Hex colors
      • #FFCCCC
      • #555555
      • and so on…
    • Confluence table background colors
      • highlight-grey
      • highlight-red
      • highlight-green
      • highlight-blue
      • highlight-yellow
  • [String] Replacement text (default=”Keep original”) - specifies the text to replace the text of the conformant element. Set to "Keep original" to keep the original text. May have one of the following values:
    • Keep original
    • Any text to replace the text of conformant element with

When the parameters are set, an example of specified formatting application may be seen at the preview pane of the macro editor. Press “Preview” button after changing formatting or replacement parameters to see the result.