TimeSheetLine class

inherits members from ClientObject

Represents a line in a timesheet.

Syntax

CSOM

class TimeSheetLine 

JSOM

PS.TimeSheetLine

REST Interface

Supported.

PS.TimeSheetLine

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/TimeSheetPeriods('{periodid}')/TimeSheet/Lines('{lineid}')

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name .NET JSOM REST Type Description
Assignment PublishedAssignment Gets the assignment that is associated with the timesheet line.
Comment ✓ʷ ✓ʷ ✓ʷ String Gets or sets the timesheet line comment.
Id Guid Gets the GUID of the timesheet line.
LineClass ✓ʷ ✓ʷ ✓ʷ TimeSheetLineClass Gets or sets the class of the timesheet line.
ProjectName String Gets the timesheet line project name.
Status ✓ʷ ✓ʷ ✓ʷ TimeSheetLineStatus Gets or sets the timesheet line status.
TaskName String Gets the timesheet line task name.
TimeSheet TimeSheet Gets the timesheet that is associated with the timesheet line.
TotalWork String Gets the total amount of work in a timesheet line.
TotalWorkMilliseconds Integer Gets or sets the time interval, expressed in milliseconds, for the total amount of work in a timesheet line.
TotalWorkTimeSpan TimeSpan Gets the time interval for the total amount of work in a timesheet line.
ValidationType TimeSheetValidationType Gets the timesheet validation type.
Work TimeSheetWorkCollection Gets the actual work on the timesheet.

Methods

Name .NET JSOM REST Return Type Description
DeleteObject() void Deletes the time sheet line object.
Submit(String comment) void Submits the time sheet line.


Method Details

DeleteObject()

Deletes the time sheet line object.

Syntax
void DeleteObject()
Parameters

None

Return Value

void

Submit(String comment)

Submits the time sheet line.

Syntax
void Submit(String comment)
Parameters
Name Type Description
comment String A comment about the timesheet line.
Return Value

void

See Also

TimeSheetLineCollection
TimeSheetLineCreationInformation