PS.PlanAssignment object (ps.js)

Office 2013 and later

Provides information about an assignment in a project plan.

Last modified: February 26, 2013

Applies to: Project Professional 2013 | Project Server 2013

PS.PlanAssignment

Methods

The PlanAssignment object has the following methods.

Method

Description

deleteObject

Deletes the plan assignment.

initNonPropertiesFromJson

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

initPropertiesFromJson

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

loadExpandoFields

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

refreshLoad

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

Properties

The PlanAssignment object has the following properties.

Property

Description

bookingType

Gets or sets the booking type for a plan assignment.

canLevel

Gets a Boolean value that indicates whether resource leveling can be performed on a plan assignment resource.

code

Gets any code, abbreviation, or number that is entered as custom information for a plan assignment.

costCenter

Gets any code, abbreviation, or number that is entered as custom cost center information for a plan assignment.

customFields

Gets the collection of custom fields that have values set for a plan assignment.

email

Gets the email address of the resource for a plan assignment.

fieldValues

Gets the collection of custom fields that have values set for a plan assignment.

group

Gets the name of the group that a plan assignment resource belongs to.

hireDate

Gets the date and time that a plan assignment resource was hired.

id

Gets the GUID of a plan assignment.

intervals

Gets the collection of plan assignment time intervals.

isTeam

Gets a Boolean value that indicates whether a plan assignment resource is in a team assignment pool.

item

name

Gets the full name of a plan assignment resource.

phonetics

Gets phonetic information for resource names, in either the Japanese Hiragana writing system or the Katakana writing system.

resource

Gets a resource that is part of an organization's entire list of resources and that can be shared across projects.

resourceType

Gets the type of the plan assignment resource.

terminationDate

Gets the date and time after which a plan assignment resource can no longer be used.

Endpoint URI structure

http://<sitecollection>/<site>/_api/ProjectServer/Projects('projectid')/GetResourcePlanByUrl(start='yyyy-MM-dd',end='yyyy-MM-dd',scale='timescale')/Assignments('assignmentid')

HTTP requests

This resource supports the following HTTP commands:

DELETE syntax

DELETE http://<sitecollection>/<site>/_api/ProjectServer/Projects('projectid')/GetResourcePlanByUrl(start='yyyy-MM-dd',end='yyyy-MM-dd',scale='timescale')/Assignments('assignmentid')

MERGE syntax

MERGE http://<sitecollection>/<site>/_api/ProjectServer/Projects('projectid')/GetResourcePlanByUrl(start='yyyy-MM-dd',end='yyyy-MM-dd',scale='timescale')/Assignments('assignmentid')

PUT syntax

PUT http://<sitecollection>/<site>/_api/ProjectServer/Projects('projectid')/GetResourcePlanByUrl(start='yyyy-MM-dd',end='yyyy-MM-dd',scale='timescale')/Assignments('assignmentid')
Show: