Поделиться через


EntityType: RiskTaskAssociation (ProjectData service)

In this article
Definition
Parent element
Child elements

Contains the properties that define the reporting data for a risk task association in the ProjectData service.

Example

The following REST query uses the RiskTaskAssociations entity set and the ProjectId key to get the risk task associations that correspond to a specified project. The query is all on one line.

http://<pwa_url>/_api/ProjectData/RiskTaskAssociations
    ?$filter=ProjectId eq guid'cb7f4bfa-e3bb-e111-8b9e-00155d34c815'

Definition

<EntityType Name="RiskTaskAssociation">
  <Key>
    <PropertyRef Name="ProjectId" />
    <PropertyRef Name="RiskId" />
    <PropertyRef Name="TaskId" />
    <PropertyRef Name="RelationshipType" />
  </Key>
  <Property Name="ProjectId" Type="Edm.Guid" Nullable="false" />
. . .
  <NavigationProperty Name="Risk" Relationship="ReportingData.RiskTaskAssociation_Risk" ToRole="Risk" FromRole="RiskTaskAssociation" />
 . . .
</EntityType>

Parent element

Element

Description

ReportingData

The schema for the reporting data in the ProjectData service.

Child elements

Child elements are properties of a risk task association and navigation properties of that risk task association. Attributes of the Property elements specify the property name and type, and whether the property can be a null value. The NavigationProperty elements specify collections of entities, such as projects and related projects, that are associated with a risk task association. A navigation property uses an Association element in a query for a related entity or collection

The Key elements specify the properties that are the primary keys for a risk task association query. ProjectId is the GUID of the project, RiskId is the GUID of the risk, TaskId is the GUID of the task, and RelationshipType is the enumerated type of the association.

Property elements

The following table lists the values of the Property elements for the RiskTaskAssociation entity. The Name, Type, and Nullable columns contain attribute values for each property.

Attribute values for the Property elements of RiskTaskAssociation

Name

Type

Nullable

Description

ProjectId

Edm.Guid

false

Key
The project GUID.

ProjectName

Edm.String

true

The name of a project.

RelatedProjectId

Edm.Guid

false

The GUID of a related project.

RelatedProjectName

Edm.String

true

The name of a related project.

RelationshipType

Edm.Int32

false

Key
The enumerated type of a relationship.

RiskId

Edm.Guid

false

Key
The GUID of a risk.

TaskId

Edm.Guid

false

Key
The GUID of a task.

TaskName

Edm.String

true

The name of a task.

Title

Edm.String

true

The title of a risk.

The following table lists attribute values for the NavigationProperty elements of the RiskTaskAssociation entity. The Name and Relationship columns contain attribute values for each navigation property.

Each Relationship attribute contains a pair of names. The first name in the pair is the primary entity type in the navigation. The second name in the pair is the secondary entity type in the navigation. For example, in the Project navigation property relationship, RiskTaskAssociation is the primary entity type and Project is the secondary entity type.

Attribute values for the NavigationProperty elements

Name

Relationship

Description

Project

RiskTaskAssociation_Project

Establishes navigation from a risk task association to a project.

RelatedProject

RiskTaskAssociation_RelatedProject

Establishes navigation from a risk task association to a related project.

Risk

RiskTaskAssociation_Risk

Establishes navigation from a risk task association to a risk.

Task

RiskTaskAssociation_Task

Establishes navigation from a risk task association to a task.

See also

Reference

RiskTaskAssociations

ReportingData

Concepts

Querying OData feeds for Project 2013 reporting data