Table of contents
API
TOC
Collapse the table of content
Expand the table of content

DraftAssignment class

Nadin Merali|Last Updated: 5/6/2017

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.NETJSOMRESTTypeDescription
[]✓ʷDictionary<string, Object>Gets or sets an item in the draft assignment.
ActualCost✓ʷ✓ʷ✓ʷDoubleGets 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✓ʷ✓ʷ✓ʷDateTimeGets or sets the date and time when the assignment is complete.
ActualOvertimeWork✓ʷ✓ʷ✓ʷStringGets or sets the actual amount of overtime work that has already been performed on the assignment.
ActualOvertimeWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval in milliseconds, for the actual amount of overtime work that has already been performed on the assignment
ActualOvertimeWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the actual amount of overtime work that has already been performed on the assignment
ActualStart✓ʷ✓ʷ✓ʷDateTimeGets or sets the date and time that the assignment actually began, based on progress information that was entered.
ActualWork✓ʷ✓ʷ✓ʷStringGets or sets the amount of work that has already been performed on the assignment.
ActualWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval, expressed in milliseconds, for the actual amount of overtime work that has already been performed on the assignment.
ActualWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the amount of work that has already been performed on the assignment.
BudgetedCost✓ʷ✓ʷ✓ʷDoubleGets or sets the budgeted cost for the assignment.
BudgetedWork✓ʷ✓ʷ✓ʷStringGets or sets the budgeted work for the assignment.
BudgetedWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval, expressed in milliseconds, for the budgeted work for the assignment.
BudgetedWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the budgeted work for the assignment.
Cost✓ʷ✓ʷ✓ʷDoubleGets or sets the total scheduled or projected cost for the assignment.
CostRateTable✓ʷ✓ʷ✓ʷCostRateTableNameGets or sets the cost rate table name for the assignment.
DefaultBookingType✓ʷ✓ʷ✓ʷBookingTypeGets or sets the default booking type for the assignment.
FieldValuesDictionary<string, Object>Gets the collection of custom fields that have values set for the draft assignment.
IsLockedByManager✓ʷ✓ʷ✓ʷBooleanGets or sets a value that indicates whether the assignment has been locked for changes by a manager.
IsWorkResource✓ʷ✓ʷ✓ʷBooleanGets 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✓ʷ✓ʷ✓ʷStringGets or sets the amount of overtime that is scheduled to be performed on the assignment.
OvertimeWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval, expressed in milliseconds, for the amount of overtime that is scheduled to be performed on the assignment.
OvertimeWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the amount of overtime that is scheduled to be performed on the assignment.
Owner✓ʷ✓ʷ✓ʷSPUserGets or sets the name of the user who is responsible for entering status for the current assignment.
ParentDraftAssignmentGets the parent assignment link.
PercentWorkComplete✓ʷ✓ʷ✓ʷIntegerGets or sets the amount of work that has been done on the assignment, expressed as a percentage of the total work.
RegularWork✓ʷ✓ʷ✓ʷStringGets or sets the total amount of nonovertime work that is scheduled to be performed on the assignment.
RegularWorkMilliseconds✓ʷ✓ʷIntegerGets 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✓ʷ✓ʷTimeSpanGets or sets the time interval for the total amount of nonovertime work that is scheduled to be performed on the assignment.
RemainingOvertimeWork✓ʷ✓ʷ✓ʷStringGets or sets the amount of remaining scheduled overtime work on the assignment.
RemainingOvertimeWorkMilliseconds✓ʷ✓ʷInteger
RemainingOvertimeWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the amount of remaining scheduled overtime work on the assignment.
RemainingWork✓ʷ✓ʷ✓ʷStringGets or sets the amount of time, such as person-hours or days, that is still required to complete the assignment.
RemainingWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval for the amount of time in milliseconds, that is still required to complete the assignment
RemainingWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the amount of time, such as person-hours or days, that is still required to complete the assignment
ResourceDraftProjectResourceGets the resource that is associated with the assignment.
ResourceCapacity✓ʷ✓ʷ✓ʷDoubleGets 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.
ResourceIdGuidGets the ResourceId that is associated with the assignment.
TaskDraftTaskGets the task to which the assignment belongs.
TaskIdGuidGets the TaskId to which the assignment belongs.
Work✓ʷ✓ʷ✓ʷStringGets or sets the total amount of time that is scheduled for the assignment.
WorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval in milliseconds, for the total amount of time that is scheduled for the assignment.
WorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the total amount of time that is scheduled for the assignment.

Methods

Name.NETJSOMRESTReturn TypeDescription
DeleteObject()voidDeletes the draft assignment object.
SetCustomFieldValue(String fieldName, Object value)voidSets 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
NameTypeDescription
fieldNameStringThe InternalName of the custom field to update.
valueObjectNew value of the custom field.
Return Value

void

See Also

AssignmentCreationInformation
DraftAssignmentCollection
SPUser

© 2018 Microsoft