When a new dashboard is created, it checks whether there is a template that is registered
for the particular dashboard type. Default templates are specified on the server, but project
administrators can override them by placing a template in the project's process
specification.
About this task
Note: This feature is available only for Engineering Workflow Management and you must have permission to
save the project area.
Procedure
To create a dashboard template in the process specification:
- In the Team Artifacts view of the Eclipse IDE, right-click the
project area, and click Open.
- Click the Process Configuration tab at the bottom of the
editor.
- In the Configuration section, click .
- In the Dashboard Templates list, select the template to
edit.
- Click Add page to add one or more pages to your
template.
- Click Add column to add one or more columns in each
page.
- Click Add viewlet to add one or more widgets in each
column.
-
Configure the widgets with the provided fields. If the widgets have preferences, use the
Preferences tab to set their values. To see a description of a preference,
hover over the preference label. For example, the image below shows the hover help for the
Items to show preference.
To configure preferences for an Events widget, such as the Project and Team Events widget,
enter any of the following options in the
Types to show field:
- dashboard
- news
- reports
- changes
- stream
- process
- workitems
- build
- com.ibm.team.interop.filter
- com.ibm.team.feed.ui.internal.itemview.ComponentFilter
Use this syntax to specify the options:
["option","option",…]
. For example:
["dashboard","news","reports","changes"]
Results
Valid mementos for the dashboard templates
When the content of a widget is edited in a dashboard, the data is stored in a data object called
a memento as part of the dashboard repository item. It is possible to pre-configure
widgets in dashboard templates with the initial content as if the user already edited them. When you
edit the template with the process editor, you can specify the memento objects that are used as the
initial content. The following table lists the widgets that support mementos and the valid memento
structures expected by these widgets to correctly configure them in templates:
Table 1. Widgets that support memento and the valid memento structure
Widget |
Expected memento structure |
Example |
Work Item Queries |
A single property queryStringIds with one or more
value children (one for each predefined query id). |
|
HTML |
A single property html with the value that
represents the raw HTML markup. |
|
Bookmarks |
A property bookmarks containing one or more child
memento objects. Each child memento captures one bookmark with the following properties:
- title: Type: String. The title of the bookmark.
- href: Type: String. The URL of the bookmark.
- id: Type: Integer. A 1-based index of the bookmarks in the list.
- category: Type: String. A name of the category that this bookmark belongs
to.
- description: Type: String. A short description of this bookmark.
A property nextId of type Integer
must contain the next index (one higher than the highest index specified in the
bookmarks).
|
|