I'm developing a dashboard on a Confluence page to display some contribution statistics for individual users.
Using the SQL macro and the Chart macro, I've built some nicely formatted charts and tables to display information for a single user. I want to re-use this content multiple times to display the output for several users on a single page. I thought a good way to do this would be to save the individual user report as one page, and then create another page which can then include the individual report page multiple times - specifying a different username each time it gets included. That way, I'm not endlessly copying and pasting the same wiki markup into several different places and having to update it multiple places each time I want to tweak it.
I seem to have backed myself into a corner now, because I can't quite figure out the correct combination of include macro/run macro/groovy macro to set the parameters for the run macro from another page. The only way I can see to alter the parameters of a run macro from outside the page context is to specify URL query parameters, but I don't think that would be appropriate in this situation?
(Doing this on Atlassian's intranet - we have most of Bob's plugins installed, but none of the more formal 'reporting' plugins like scaffolding).
What's the best way to achieve this "Write Once, Render Many" goal where I define the wiki markup once and then include it in multiple places with different parameters?
Hey, this is a switch, me answering one of your questions!!! A key part of your question is: display the output for several users on a single page, otherwise the standard techniques work. Its late here, so best I can do is give you some ideas.
Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...
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!
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