Set up a default value for the List Data macro
Summary
Scaffolding's List Data macro doesn't have an out-of-the-box option for default values in its structure but there is a workaround to this limitation using Reporting for Confluence.
Environment
Scaffolding
Confluence Server and Data Center
Diagnostics Steps
Generate HAR file and search for error, etc - basically steps for user to identify the issue. Empty the section if not applicable.
Cause
Not applicable.
Workaround
Create a Hidden Data macro.
Within the Hidden Data macro, create a Report Block macro.
Within the Report Block macro, create a Local Reporter macro, Report Body macro, and Report Empty macro.
Within the Report Empty macro, create a Set Data macro and give it a name.
In this example, we will name it "test".Inside the Set Data macro, input the value you wish to be default.
In the Local Reporter macro, set the Key parameter to "
data:test
".
(This is the name of the Set Data macro holding our default value.)
You can see this example in action at our Demo site.
Macro structure:
Resolution
List down the resolution if any. If it's a bug, state that it's tracked internally. Once bug is fixed, update the KB with add on version that has the fix. Empty the section if not applicable. Note: You can't have both Workaround and Resolution sections empty. Either one should be filled in.