Nested report-info macro injection does not work in Confluence 4


we're trying to use a Confluence 3 template in Confluence 4. But it seems, that the report-info macro get messed from the XML converting process. Because it is a live-template, all pages created with this template are broken. Could you please help to solve the problem?

We're using the following code snippet in the template. As you see, we use two report-info macros to generate a link, one for the link name and one for the url. Some characters are being changed during the templating process.


    [{report-info:ChangesetNumber} |http://as-tfs:8080/tfs/web/UI/Pages/Scc/ViewChangeset.aspx?changeset={report-info:ChangesetNumber}&pguid=c6ccccde-9e45-4372-ba61-859e2223d322] {report-info:ChangesetComment}

    Please {link-to:page edit}edit{link-to} to add changesets.

When creating a page using this template, I get the following code mess:

And this is the same part in the source code view:

Any ideas? Thanks for your support!

1 answer

1 accepted

0 votes
Accepted answer

It looks to me from your markup that you've not closed your report-info tags. Perhaps this wasn't necessary in 3.x, but in 4 I think it is. Try closing each one, but for a simpler approach I would recommend injecting the values you need into the text. It's more predictable than using report-info I think, in terms of not introducing spaces or line breaks.

No change, same mistake:

    [{report-info:ChangesetNumber}{report-info}|http://as-tfs:8080/tfs/web/UI/Pages/Scc/ViewChangeset.aspx?changeset={report-info:ChangesetNumber}{report-info}&pguid=c6ccccde-9e45-4372-ba61-859e2223d322] {report-info:ChangesetComment}{report-info}

CustomWare says, that no closing tag ist needed:

{report-info:[key=][key chain]|format=[date/number format]|render=[none/wiki]|default=[default value]}


{report-info:[key=][prefix:]value key|format=[date/number format]|render=[none/wiki]}default value{report-info}

Sorry, but I'm not sure what you mean. What would you recommend, how should I inject the values into the text? The macro generates a list, well, I mean it did.

See this link and the part about keychain injection:

"This uses injection to put data into places the report-info macro can't go, such as inside link markup..."

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

447 views 8 26
Read article

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