Using scaffolding text fields to pass values for jira macros in a template

I would like to allow the users to provide a link to a jira filter in the text field provided by the scaffolding macro. Then I would like to take that jira filter link and use it in either a jira issues macro to show a list of jira issues on the confluence page. I am wondering if this is possible.

Thanks for all your help.

2 answers

It is possible, provided your users understand the need to provide keys as a comma delimited string which you capture in a text-data field. In this case you can use the report-on macro from the Reporting plugin to inject that string into the jira issues macro. Be careful that any percent signs used in the query parameter are doubled up, so that Reporting doesn't treat these as markers for injection. In my case, I originally wanted to capture the jira keys in a report-table, which the end user could add rows to as required. This part worked well, but Reporting in Confluence 4 could not output the jira keys as a comma delimited string, and so I had to go back to a simpler way to capture those values. See this forum topic which may have snippets to help you:

Confluence {run} macro allows you to do this by accepting a value form user and rendering the contents based on the same. You can use jiraissues macro within the run macro.

I meant the plugin from Bob

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

318 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you