Injecting Parameters into the Jira Issues Macro

Scenario

The following recipe shows how to inject parameters into Atlassian's Jira Issue macro. Wiki Markup must be used as the macro auto-complete does not read the injection.

Both Scaffolding and Reporting must be installed with a connection between Confluence and Jira.



Result


Recipe

Ingredients

Add-ons

Scaffolding, Reporting

Platform

Server

Level

ADVANCED

Estimated time

15 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Text Data macro.
    Give it a Field Name of "ProjectName".
    Change the Content Type to "Text".

  2. Create a Date Data macro.
    Give it a Field Name of "SprintStart".

  3. Create another Date Data macro.
    Give it a Field Name of "SprintEnd".

  4. Create a Report On macro.
    Ensure the Injected parameter is true.

  5. Within the Report On macro, create a Jira Issues macro.
    Enter a JQL query into the Search field.
    In this example, the query used is:

    project = %data:ProjectName% AND resolved > %data:SprintStart>date:yyyy-MM-dd% AND resolved < %data:SprintEnd>date:yyyy-MM-dd% ORDER BY priority DESC