Supplier References

Overview

Suppliers provide access to data and other values in a simple but flexible manner, giving apps access to information they would not normally have.

They are mostly used for apps such as:

However, they can also be used by any compatible app, such as Comala Document Management.

In addition, Comala Document Management provides its own Supplier – the Workflow Supplier – that can be used with these apps and any other compatible app.

Where can they be used?

Use in any macro that supports Value References or Conditions – see Conditions, Content and Value References for a list of macros.

Available suppliers

How to use them

First, you must install the Reporting for Confluence app – this provides numerous Suppliers, but more importantly, it enables their use via Parameter Injection.

You can access information from any of the suppliers from apps such as Reporting and Scaffolding, by using a Supplier Keychain, without the "%" symbols, in a Value Reference.

For example, if you want to display a message when a page is updated, but only if that page has child pages, you could use the children key of the page supplier

  • this key returns a list (a collection), which can be inspected using a collection supplier to determine the number of child pages via its size key

This can be used in a custom Condition on a trigger macro and also in the body of a set-message macro like so:

{workflow:name=Check child pages} {state:Test|description=Update the page to test the trigger} {state} {trigger:pageupdated|state=Approved|@content:children > size@=!0} {set-message}Please check the content of the @content:children > size@ child page(s){set-message} {trigger} {workflow}

All examples

See also

Other app links

Integration Guides