PS.TimeSheetWork object (ps.js)

Represents the different types of work on a timesheet.

Applies to: Project Professional 2013 | Project Server 2013

PS.TimeSheetWork

Members

Methods

The TimeSheetWork object has the following methods.

Method

Description

deleteObject

Deletes the timesheet work.

initPropertiesFromJson

This member is reserved for internal use and is not intended to be used directly from your code.

Properties

The TimeSheetWork object has the following properties.

Property

Description

actualWork

Gets or sets the amount of actual work that is on a timesheet.

actualWorkMilliseconds

Gets or sets the time interval for the amount of actual work that is on a timesheet.

comment

Gets or sets the timesheet work comment.

end

Gets or sets the end time of the actual work that is on a timesheet.

id

Gets the GUID of the timesheet line that is associated with the work.

nonBillableOvertimeWork

Gets or sets the amount of nonbillable overtime work that is on a timesheet.

nonBillableOvertimeWorkMilliseconds

Gets or sets the milliseconds of the amount of nonbillable overtime work that is on a timesheet.

nonBillableWork

Gets or sets the amount of nonbillable work that is on a timesheet.

nonBillableWorkMilliseconds

Gets or sets the milliseconds of the amount of nonbillable work that is on a timesheet.

overtimeWork

Gets or sets the amount of overtime work that is on a timesheet.

overtimeWorkMilliseconds

Gets or sets the amount of overtime work in milliseconds that is on a timesheet.

plannedWork

Gets or sets the amount of planned work that is on a timesheet.

plannedWorkMilliseconds

Gets or sets the amount of planned work in milliseconds that is on a timesheet.

start

Gets or sets the start time of the actual work that is on a timesheet.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/ProjectServer/TimeSheetPeriods('periodid')/TimeSheet/Lines('lineid')/Work('yyyy-MM-dd')

HTTP requests

This resource supports the following HTTP commands:

DELETE syntax

DELETE http://<sitecollection>/<site>/_api/ProjectServer/TimeSheetPeriods('periodid')/TimeSheet/Lines('lineid')/Work('yyyy-MM-dd')

MERGE syntax

MERGE http://<sitecollection>/<site>/_api/ProjectServer/TimeSheetPeriods('periodid')/TimeSheet/Lines('lineid')/Work('yyyy-MM-dd')

PUT syntax

PUT http://<sitecollection>/<site>/_api/ProjectServer/TimeSheetPeriods('periodid')/TimeSheet/Lines('lineid')/Work('yyyy-MM-dd')

See also

Reference

Microsoft.ProjectServer.Client.TimeSheetWork