Part 3 - Creating the admin dashboard

Now we will create the admin dashboard, which will allow admin to have a detailed overview of all created tasks by team members.

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:

⚙️ Expand

Steps

  1. Add a Show If macro and set the User parameter to "admin".

  2. Then create a Report Table inside the Show If macro.

  3. Within the Report Table add an Expanding Reporter macro.
    Set its Key and As parameters to "data:Task" and "Task" respectively. 

  4. Within the Expanding Reporter, create a Local Reporter and set the Key parameter to "page:children"
    Add four Report Column macros and set their titles to "Assignee", "Task Description", "Due Date" and "Status" respectively for each cell.
    Then add a Report Footer macro.

  5. In the "Assignee" Report Column macro, add a Report Info macro.
    Set its Key parameter to "Task>data:User" .
    This is so we can get the value of the the Scaffolding User field.

  6. In the "Task DescriptionReport Column macro, add a Report Info macro and set the Key parameter to "Task>data:Description".
    This is so we can get the value of the Scaffolding Description field. 

  7. In the "Due DateReport Column macro, add a Report Info macro and set its Key parameter to "Task>data:Due Date".
    This is so we can get the value of the Scaffolding Due Date field. 

  8. In the "Status" Report Column macro, add a Report Info macro and set its Key parameter to "Task>data:Status".
    This is so we can get the value of the Scaffolding Status field.

  9. Finally, add a 1x1 table in the Report Footer macro, color it as desired. (Orange is used in this example).
    Write "Total Number of Tasks:", Add a Report Info macro and set the Key parameter to "Report:query>size".

Macro structure


add NEXT: Creating the first component of the product manager dashboard