EntityType: IssueTaskAssociation (ProjectData service)
In this article
Definition
Parent element
Child elements
Contains the properties that define the reporting data for an issue task association in the ProjectData service.
Example
The following REST query uses the IssueTaskAssociations entity set and the TaskId and RelationshipType keys to get the issue task associations for the specified task and relationship type. The query is all on one line.
http://<pwa_url>/_api/ProjectData/IssueTaskAssociations
?$filter=TaskId eq guid'91325620-ccbb-e111-82d9-00155d4a4108'
and RelationshipType eq 2
Definition
<EntityType Name="IssueTaskAssociation">
<Key>
<PropertyRef Name="ProjectId" />
<PropertyRef Name="IssueId" />
<PropertyRef Name="TaskId" />
<PropertyRef Name="RelationshipType" />
</Key>
<Property Name="ProjectId" Type="Edm.Guid" Nullable="false" />
. . .
<NavigationProperty Name="Issue" Relationship="ReportingData.IssueTaskAssociation_Issue" ToRole="Issue" FromRole="IssueTaskAssociation" />
. . .
</EntityType>
Parent element
Element |
Description |
---|---|
The schema for the reporting data in the ProjectData service. |
Child elements
Child elements are properties of an issue task association and navigation properties of that issue 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 tasks and projects, that are associated with an issue 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 an issue task association query. ProjectId is the project GUID, IssueId is the GUID of the issue, 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 IssueTaskAssociation entity. The Name, Type, and Nullable columns contain attribute values for each property.
Note
In the ProjectData schema, if the Nullable attribute is missing, the default value is true.
Attribute values for the Property elements of IssueTaskAssociation
Name |
Type |
Nullable |
Description |
---|---|---|---|
IssueId |
Edm.Guid |
false |
Key |
ProjectId |
Edm.Guid |
false |
Key |
ProjectName |
Edm.String |
true |
The name of a project. |
RelatedProjectId |
Edm.Guid |
false |
The GUID that identifies a related project. |
RelatedProjectName |
Edm.String |
true |
The name of a related project. |
RelationshipType |
Edm.Int32 |
false |
Key |
TaskId |
Edm.Guid |
false |
Key |
TaskName |
Edm.String |
true |
The name of a task. |
Title |
Edm.String |
true |
The title of the issue. |
NavigationProperty elements
The following table lists attribute values for the NavigationProperty elements of the IssueTaskAssocation 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 Issue navigation property relationship, IssueTaskAssociation is the primary entity type and Issue is the secondary entity type.
Attribute values for the NavigationProperty elements
Name |
Relationship |
Description |
---|---|---|
Issue |
Establishes navigation from an issue task association to an issue. |
|
Project |
Establishes navigation from an issue task assocation to a project. |
|
RelatedProject |
Establishes navigation from an issue task association to a related project. |
|
Task |
Establishes navigation from an issue task assocation to a task. |