Get all project tasks assigned to the user

get

/fscmRestApi/resources/11.13.18.05/projectsUsers/{ResourceId}/child/ProjectTasks

Request

Path Parameters
Query Parameters
  • This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2

    Format: <attr1>=<val1>,<attr2>=<value2>
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • Used as a predefined finder to search the collection.

    Format: ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>

    The following are the available finder names and corresponding finder variables:

    • PrimaryKey: Finds all the project tasks with the specified project element ID.
      Finder Variables:
      • PlanLineId; integer; The unique identifier of a plan line on the project task.
      • ProjElementId; integer; The unique identifier of the project element on the project task.
  • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
  • This parameter orders a resource collection based on the specified fields. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. The default value is "asc". For example, ?orderBy=field1:asc,field2:desc
  • This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;Loc!=NY

    Format: ?q=expression1;expression2

    You can use these queryable attributes to filter this collection resource using the q query parameter:
    • CreatedBy; string; The unique identifier of the user who created the task.
    • CreationDate; string; The date when the task is created.
    • ElementType; string; The element type of the task.
    • ElementVersionId; integer; The unique identifier of the element version of the task.
    • ExecutionDisplaySequence; integer; The order in which the task is displayed in the project.
    • FinancialParentTaskId; integer; Unique identifier of the lowest financial parent task.
    • FinancialParentTaskName; string; The name of the lowest financial parent task.
    • FinancialParentTaskNumber; string; The number of the lowest financial parent task.
    • LastUpdateDate; string; The date when the task is last updated.
    • LastUpdatedBy; string; The unique identifier of the user who last updated the task.
    • MilestoneFlag; boolean; Indicates whether a task is a milestone in the Team Member Dashboard and Task Management page. If the value is true, then the task is a milestone. The default value is false.
    • ObjectType; string; The object type of the task.
    • OsnSharedTaskFlag; boolean; Indicates whether a task is shared on OSN. If the value is true, then the task is shared. The default value is false.
    • ParentTaskName; string; The name of the parent task to a new task.
    • ParentTaskNumber; string; The number of the parent task. If the task is the top task, then parent task is null.
    • PlanLineId; integer; The unique identifier of the plan line of the task.
    • PlanVersionId; integer; The unique identifier of the plan version of the proejct task.
    • ProjElementId; integer; The unique identifier of the project Element of the task.
    • ProjectId; integer; The unique identifier of the project to which the task is associated.
    • ProjectName; string; The name of the project to which a task is associated.
    • ProjectStatusCode; string; The code corresponding to the label that displays the status of the project.
    • ProjectStatusName; string; The label to display the status of the project.
    • ProjectSystemStatusCode; string; The code of the system status corresponding to the status of the project.
    • TaskActualFinishDate; string; The date when work was completed on a task as opposed to the planned end date of the task.
    • TaskActualQuantity; number; The number of hours that the project team member reports working on the task.
    • TaskActualStartDate; string; The date when work started on a task as opposed to the planned start date of the task.
    • TaskCurrentActualQuantity; number; Current estimated effort to complete the task.
    • TaskCurrentFinishDate; string; The date when the task is estimated to end.
    • TaskCurrentStartDate; string; The date when the task is estimated to start.
    • TaskDescription; string; The description of the task.
    • TaskExceptions; string; The exceptions generated by the progress entry for the task.
    • TaskId; integer; The unique identifier of the task.
    • TaskLevel; integer; The level of the task in the project work plan.
    • TaskName; string; The name of the task.
    • TaskPercentComplete; number; The percent of work completed for a particular task.
    • TaskPlannedFinishDate; string; The date when the task is scheduled to end.
    • TaskPlannedStartDate; string; The date when task is scheduled to start.
    • TaskPrimaryResourceId; integer; The unique identifier of the primary resource assigned to the task.
    • TaskPriority; number; The priority of the task.
    • TaskProgressEnteredDate; string; The date when progress on a task was last entered.
    • TaskProgressStatus; string; The status of work completed on the task.
    • TaskProgressStatusCode; string; The code of the progress status of the task.
    • TaskProposedFinishDate; string; The date when the task is expected to be completed.
    • TaskProposedQuantity; number; The total number of hours estimated for the resource to complete a task.
    • TaskProposedStartDate; string; The date when the task is expected to be started.
    • TaskQuantity; number; The scheduled number of hours that the resource is assigned to work on a task.
    • TaskRemainingQuantity; number; The number of hours the project team member has left to complete a task.
    • TaskResourceAllocationPercent; number; The percentage of total time that resources are planned to work on the task they are assigned to.
    • TopTaskId; integer; Identifier of the top task to which the task rolls up. The top task identifier and task identifier are the same for a top task.
    • TopTaskName; string; Name of the top task to which the task rolls up. The top task identifier and task identifier are same for a top task.
    • TopTaskNumber; string; The number of the top task to which the task rolls up. The top task identifier and task identifier are same for a top task.
  • The resource collection representation will include the "estimated row count" when "?totalResults=true", otherwise the count is not included. The default value is "false".
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : projectsUsers-ProjectTasks
Type: object
Show Source
Nested Schema : Items
Type: array
Title: Items
The items in the collection.
Show Source
Nested Schema : projectsUsers-ProjectTasks-item-response
Type: object
Show Source
Nested Schema : Labor Resource Assignments
Type: array
Title: Labor Resource Assignments
The labor resource assignment includes attributes used to store values while creating or updating labor resource assignments for a project task. For example, a DBA may be assigned as a labor resource for a project task.
Show Source
Nested Schema : Project Task Followers
Type: array
Title: Project Task Followers
The task follower resource is used to store values while adding or removing followers on project tasks. A project user can be assigned as a follower on a project task for viewing task details and tracking its completion.
Show Source
Nested Schema : projectsUsers-ProjectTasks-LaborResourceAssignments-item-response
Type: object
Show Source
Nested Schema : projectsUsers-ProjectTasks-TaskFollowers-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to get all project tasks assigned to the user by submitting a GET request on the REST resource using cURL.

curl -i -u "<username>:<password>" -X GET https://<host>:<port>/fscmRestApi/resources/latest/projectsUsers/<ResourceId>/child/ProjectTasks

Example of Response Header

The following shows an example of the response header.

Status: HTTP/1.1 200 OK
Content-Type : application/json

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "items": [
     {
  "TaskName": "PJT 2.0",
  "ProjElementId": 300100025840853,
  "ObjectType": "PJF_TASKS",
  "ElementType": "EXECUTION",
  "ExecutionDisplaySequence": 600000,
  "ElementVersionId": 300100025840851,
  "ProjectId": 300100025840829,
  "TaskActualFinishDate": "2012-01-06",
  "TaskActualStartDate": "2012-01-01",
  "TaskPlannedFinishDate": "2012-01-06",
  "TaskPlannedStartDate": "2012-01-01",
  "TaskPriority": null,
  "TaskPercentComplete": 100,
  "ProjectName": "PJT Project 01",
  "TaskDescription": null,
  "TaskProposedFinishDate": "2012-01-06",
  "TaskProposedStartDate": "2012-01-01",
  "TaskProgressStatus": "Complete",
  "TaskQuantity": 40,
  "TaskProposedQuantity": 40,
  "TaskRemainingQuantity": 0,
  "TaskResourceAllocationPercent": 100,
  "ProjectStatusName": "Approved",
  "ProjectStatusCode": "APPROVED",
  "ProjectSystemStatusCode": "ACTIVE",
  "PlanVersionId": 300100025840834,
  "TaskPrimaryResourceId": 300100024326655,
  "TaskProgressStatusCode": "COMPLETE",
  "TaskProgressEnteredDate": "2017-01-05",
  "ParentTaskName": "PJT Project 01",
  "MilestoneFlag": false,
  "TaskExceptions": null,
  "TaskId": 300100025840853,
  "TaskActualQuantity": 40,
  "TaskCurrentActualQuantity": 40,
  "TaskCurrentFinishDate": "2012-01-06",
  "TaskCurrentStartDate": "2012-01-01",
  "LastUpdatedBy": "Connor.Horton",
  "LastUpdateDate": "2017-01-05T16:02:05-08:00",
  "CreatedBy": "Mark.Taylor",
  "CreationDate": "2013-08-20T03:25:07-08:00",
  "links": [
    ...
]
}
Back to Top