Using Predefined Project Intelligence Queries with Data Perspectives

Using the existing project query, Multisource Project WBS explorer, you can use data perspectives to retrieve project data and present the data how you want. You are not limited to the design of the Project Intelligence user interface.

You can then use your data perspectives workspace to develop your own dashboard, create custom queries on top of the Project Intelligence query, and present your project data using your own design and functionality. Using Data Perspective Studio, you can declare Project Intelligence as a dependency and reuse existing Project Intelligence queries. These queries retrieve project-related objects and their relationships from the Project Management, Project Planning, and Pivot external data models. Project objects that you retrieve from the query are project, subprojects, tasks, subtasks, phases, milestone, gates (deliverables and risks are attributes for other objects, not objects themselves).

.

You can apply the shared query outputs to build:

  • Custom data perspectives
  • Tables and reports
  • Dashboards
  • Project structure views
  • Risk and deliverable views
  • Project planning analytics
  • Customer-specific data visualizations

This task shows you how to:


Before you begin: Either the Project Portfolio Manager or Project Intelligence Consumer role.

Add Project Intelligence as a Workspace Dependency

To access shared project data, you first add project intelligence queries as a workspace dependency. To confirm whether the dependency already exists, see the Query field list in the Query Call panel. If your Project Intelligence query is not listed in the Query field as a dependency, you must add it.

  1. Select Data Workspace Settings > Dependencies.
  2. Select the Graph tab.
  3. To link a data perspective to a project, drag a line from a data perspective shown in the tab.
    When you release your mouse button, a list of project query result sets appears.
  4. Select the Project Intelligence query results set.
    A list of Project Intelligence indexes appears. The indexes link to Project Intelligence.
  5. Select Multisource Project WBS Explorer.

    This ensures that project-related data is retrieved from Project Management, Project Planning, and Pivot Model data indexes.

    The Result Sets list appears.
  6. To collect data from the selected project query sources, select one of the following options in the Result sets list:
    • Output - Collect all data.
    • All Tasks - Collect only task data.
    • All Milestones - Collect only milestone data.
  7. Activate a filter option:

    • project uri - When active, the query call returns data for a project uri that you provide. When inactive, the query call returns data from all accessible projects.
    • source - When active, the query call lets you select Project Planning, Project Management, and Pivot data. It returns data from data models that you select. When inactive, the query call returns data from all accessible project sources.

  8. Click in the field for the filter option that you activated (either project_uri or source). The expression editor opens:
  9. In the expression editor, select Return Type and enter one of the following:
    1. For the project uri, enter "<uuuid:xx>" (with quotes) where xx is the name of a project.
    2. For the source, enter "Project Planning" or "Project Management" (with quotes).

Enable Query Call Filters

When creating a query call, you can select Project_uI and source as query filters. The following instructions explain how to enable the filter options if they are disabled.

  1. In the Queries tab, drag a line from the Query Call icon.
    When you release your mouse button, a dialog box appears.
  2. In the dialog box, select the RESULT SET icon.
  3. In the Data Perspective Studio toolbar, click Run.
  4. In the menu in the center of the work area, select +Add view > Out and select a view from the views.
    Your data appears in a format based on the type of view that you select.

Result: The table below describes the fields in the project data:

Field Description
rootProjectId ID of the top-level project for the complete WBS hierarchy.
parentProjectId ID of the project context containing the object.
objectId Unique ID of the current project, task, milestone, or other WBS object.
name Display name of the object.
type Object classification, such as project, task, or milestone.
bo Complete underlying business-object/RDF payload.
source Source app: Project Management or Project Planning.
parentId Immediate WBS parent. It is null for the root project.
wbsLevel Depth of the object in the hierarchy. Root project starts at 0.
path Ordered hierarchy from the root project through the current object.
children IDs of the object’s immediate WBS children.
deliverables Deliverable references associated with the object.
risks Risk references associated with the object.
For example, the results display a flat list such as:
{
 "rootProjectId": "string",
 "parentProjectId": "string",
 "objectId": "string",
 "name": "string",
 "type": "Project | Subproject | Task | Milestone",
 "bo": "core.Item / RDF resource",
 "source": "Project Management | Project Planning",
 "parentId": "string | null",
 "wbsLevel": "integer",
 "path": [
 {
 "object": "string",
 "bo": "core.Item / RDF resource"
 }
 ],
 "children": ["string"],
 "deliverables": [
 {
 "id": "string"
 }
 ],
 "risks": [
 {
 "id": "string"
 }
 ]
}