DraftAssignment class

inherits members from Assignment

Represents an Assignment in a project that is checked out or yet to be published and enables the creation of a assignments for a project.

Syntax

CSOM

class DraftAssignment 

JSOM

PS.DraftAssignment

REST Interface

This resource supports GET, POST, and DELETE HTTP commands.

PS.DraftAssignment

http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/Projects('{projectid}')/Draft/Assignments('{assignmentid}')

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name .NET JSOM REST Type Description
[] ✓ʷ Dictionary<string, Object> Gets or sets an item in the draft assignment.
ActualCost ✓ʷ ✓ʷ ✓ʷ Double Gets or sets the costs incurred for work already performed on the assignment, together with any other recorded costs that are associated with the assignment.
ActualFinish ✓ʷ ✓ʷ ✓ʷ DateTime Gets or sets the date and time when the assignment is complete.
ActualOvertimeWork ✓ʷ ✓ʷ ✓ʷ String Gets or sets the actual amount of overtime work that has already been performed on the assignment.
ActualOvertimeWorkMilliseconds ✓ʷ ✓ʷ Integer Gets or sets the time interval in milliseconds, for the actual amount of overtime work that has already been performed on the assignment
ActualOvertimeWorkTimeSpan ✓ʷ ✓ʷ TimeSpan Gets or sets the time interval for the actual amount of overtime work that has already been performed on the assignment
ActualStart ✓ʷ ✓ʷ ✓ʷ DateTime Gets or sets the date and time that the assignment actually began, based on progress information that was entered.
ActualWork ✓ʷ ✓ʷ ✓ʷ String Gets or sets the amount of work that has already been performed on the assignment.
ActualWorkMilliseconds ✓ʷ ✓ʷ Integer Gets or sets the time interval, expressed in milliseconds, for the actual amount of overtime work that has already been performed on the assignment.
ActualWorkTimeSpan ✓ʷ ✓ʷ TimeSpan Gets or sets the time interval for the amount of work that has already been performed on the assignment.
BudgetedCost ✓ʷ ✓ʷ ✓ʷ Double Gets or sets the budgeted cost for the assignment.
BudgetedWork ✓ʷ ✓ʷ ✓ʷ String Gets or sets the budgeted work for the assignment.
BudgetedWorkMilliseconds ✓ʷ ✓ʷ Integer Gets or sets the time interval, expressed in milliseconds, for the budgeted work for the assignment.
BudgetedWorkTimeSpan ✓ʷ ✓ʷ TimeSpan Gets or sets the time interval for the budgeted work for the assignment.
Cost ✓ʷ ✓ʷ ✓ʷ Double Gets or sets the total scheduled or projected cost for the assignment.
CostRateTable ✓ʷ ✓ʷ ✓ʷ CostRateTableName Gets or sets the cost rate table name for the assignment.
DefaultBookingType ✓ʷ ✓ʷ ✓ʷ BookingType Gets or sets the default booking type for the assignment.
FieldValues Dictionary<string, Object> Gets the collection of custom fields that have values set for the draft assignment.
IsLockedByManager ✓ʷ ✓ʷ ✓ʷ Boolean Gets or sets a value that indicates whether the assignment has been locked for changes by a manager.
IsWorkResource ✓ʷ ✓ʷ ✓ʷ Boolean Gets or sets a value that indicates whether an assignment resource is a work resource or a material resource.
Item ✓ʷ Dictionary<string, Object> Gets or sets an item in the draft assignment.
OvertimeWork ✓ʷ ✓ʷ ✓ʷ String Gets or sets the amount of overtime that is scheduled to be performed on the assignment.
OvertimeWorkMilliseconds ✓ʷ ✓ʷ Integer Gets or sets the time interval, expressed in milliseconds, for the amount of overtime that is scheduled to be performed on the assignment.
OvertimeWorkTimeSpan ✓ʷ ✓ʷ TimeSpan Gets or sets the time interval for the amount of overtime that is scheduled to be performed on the assignment.
Owner ✓ʷ ✓ʷ ✓ʷ SPUser Gets or sets the name of the user who is responsible for entering status for the current assignment.
Parent DraftAssignment Gets the parent assignment link.
PercentWorkComplete ✓ʷ ✓ʷ ✓ʷ Integer Gets or sets the amount of work that has been done on the assignment, expressed as a percentage of the total work.
RegularWork ✓ʷ ✓ʷ ✓ʷ String Gets or sets the total amount of nonovertime work that is scheduled to be performed on the assignment.
RegularWorkMilliseconds ✓ʷ ✓ʷ Integer Gets or sets the time interval, expressed in milliseconds, for the total amount of nonovertime work that is scheduled to be performed on the assignment.
RegularWorkTimeSpan ✓ʷ ✓ʷ TimeSpan Gets or sets the time interval for the total amount of nonovertime work that is scheduled to be performed on the assignment.
RemainingOvertimeWork ✓ʷ ✓ʷ ✓ʷ String Gets or sets the amount of remaining scheduled overtime work on the assignment.
RemainingOvertimeWorkMilliseconds ✓ʷ ✓ʷ Integer Gets or sets the time interval for the amount of time in milliseconds, for the amount of remaining scheduled overtime work on the assignment.
RemainingOvertimeWorkTimeSpan ✓ʷ ✓ʷ TimeSpan Gets or sets the time interval for the amount of remaining scheduled overtime work on the assignment.
RemainingWork ✓ʷ ✓ʷ ✓ʷ String Gets or sets the amount of time, such as person-hours or days, that is still required to complete the assignment.
RemainingWorkMilliseconds ✓ʷ ✓ʷ Integer Gets or sets the time interval for the amount of time in milliseconds, that is still required to complete the assignment
RemainingWorkTimeSpan ✓ʷ ✓ʷ TimeSpan Gets or sets the time interval for the amount of time, such as person-hours or days, that is still required to complete the assignment
Resource DraftProjectResource Gets the resource that is associated with the assignment.
ResourceCapacity ✓ʷ ✓ʷ ✓ʷ Double Gets or sets a value that indicates how much work the resource performs on the assignment, expressed as a percentage of the resource's theoretical full capacity.
ResourceId Guid Gets the ResourceId that is associated with the assignment.
Task DraftTask Gets the task to which the assignment belongs.
TaskId Guid Gets the TaskId to which the assignment belongs.
Work ✓ʷ ✓ʷ ✓ʷ String Gets or sets the total amount of time that is scheduled for the assignment.
WorkMilliseconds ✓ʷ ✓ʷ Integer Gets or sets the time interval in milliseconds, for the total amount of time that is scheduled for the assignment.
WorkTimeSpan ✓ʷ ✓ʷ TimeSpan Gets or sets the time interval for the total amount of time that is scheduled for the assignment.

Methods

Name .NET JSOM REST Return Type Description
DeleteObject() void Deletes the draft assignment object.
SetCustomFieldValue(String fieldName, Object value) void Sets a custom field on the draft assignment.

#### Method Details

DeleteObject()

Deletes the draft assignment object.

Syntax
void DeleteObject()
Parameters

None

Return Value

void

SetCustomFieldValue(String fieldName, Object value)

Sets a custom field on the draft assignment.

Syntax
void SetCustomFieldValue(String fieldName, Object value)
Parameters
Name Type Description
fieldName String The InternalName of the custom field to update.
value Object New value of the custom field.
Return Value

void

See Also

AssignmentCreationInformation
DraftAssignmentCollection
SPUser