Error formatting macro: appfire-confluence-analytics: java.lang.NullPointerException: Cannot invoke "com.atlassian.confluence.xhtml.api.MacroDefinition.getMacroId()" because "macroDefinition" is null
Skip to end of banner
Go to start of banner

How to condition on a field being blank or empty

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Description

A common scenario is to do something if a field is not set or empty.

Steps

Add a condition with the following characteristics:

Value

Pattern

Exact

Literal

Negative

Notes

%variable%

\S+

either

(error)

(tick)

  • \S+ means to look for at least 1 (that is what + means) non-whitespace character

  • Use Negative to reverse the matching on a non-blank character

  • No labels