Part 2 - Adding a Create Task Page button

We will now use the Add Page macro to add a "Create Task Page" button to the dashboard.

At the end of this step, you should have the following:

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 Hide If macro and set User parameter to "admin"  and "product-manager".
    The purpose of the Hide If macro used in this example is to keep the button hidden from user admin and Product Manager.

  2. Then add a 1x1 table in the Hide If macro, color it as desired. (Grey is used in this example.)

  3. Within the table create an Add Page macro.
    Set the Name parameter to "%global:current user > user>name%" . (This will create a task list with the current user name.)
    Set the Link Text parameter to "Create Task List".
    Set Source parameter to "Task"  template and check the Live Template parameter.

Macro structure

add NEXT: Creating the admin dashboard