Part 3 - Creating the first component of the product manager dashboard
Overview
Next, let's build the the product manager dashboard.
We'll start with the first component of the product manager dashboard which contains a chart displaying the number of tasks team members have created.
By the end of this section you should have something that looks like this:
Source code
The following source code is shared using Confluence Storage Format - the XHTML-based format that Confluence uses to store the content of pages, page templates, blueprints, blog posts and comments.
For more information on how to use this source code on your Confluence, read the following article - How do I use Recipes that use the Storage Format with the Confluence Source Editor?
Steps
Add a chart macro
On a draft page
add a Confluence Chart macro
set Type to "bar"
set dataDisplay to "after"
Add report-table
Inside the Chart macro
create a Report Table macro
Within the Report Table macro
add a Grouping Reporter macro
set the Key parameter to "
Task>data:User
"set the As parameter to "Assignee"
In this Grouping Reporter macro
add a Grouping Stats macro
set the Key parameter to "
Task>size
"set the As parameter to "AssigneeTasks"Â
add an Expanding Reporter macro
set the Key parameter to "
data:Task
"set the As parameter "Task"Â
In the Expanding Reporter macro
create a Local Reporter macro
set the Key parameter to "
page:children
"
Adding the reporting columns
Within the Report Table macro, (below the Grouping Reporter macro)
add two Report Column macros
set their Titles to
"Assignee"
"Number of Tasks"
In the "Assignee" Report Column macro
add a Report Info macro
set the Key parameter to "Assignee"
In the "Number of Tasks" Report Column macro
add a Report Info macro
set the Key parameter to "
AssigneeTasks>stats:item count
"
This is so we can get the value of the Scaffolding Description field.
Macro structure
Next
Part 4 - Creating the second component of the product manager dashboard