TaskCreationInformation class

Provides property settings and methods that are used to create a task.

Syntax

CSOM

class TaskCreationInformation 

JSOM

PS.TaskCreationInformation

REST Interface

Supported.

PS.TaskCreationInformation

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('{projectId}')/Draft/Tasks/Add

POST Example (not all fields may be required)

body = {
    'parameters': {
        'AddAfterId':'value', 
        'Duration':'value', 
        'Finish':'value', 
        'Id':'value', 
        'IsManual':'value', 
        'Name':'value', 
        'Notes':'value', 
        'ParentId':'value', 
        'Start':'value', 
        'StatusManager':'value'     
    }

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name .NET JSOM REST Type Description
AddAfterId ✓ʷ ✓ʷ ✓ʷ Guid Gets or sets the GUID value of the task that specifies the insertion point.
Duration ✓ʷ ✓ʷ ✓ʷ String Gets or sets the task duration.
Finish ✓ʷ ✓ʷ ✓ʷ DateTime Gets or sets the task finish date.
Id ✓ʷ ✓ʷ ✓ʷ Guid Gets or sets the GUID of the task.
IsManual ✓ʷ ✓ʷ ✓ʷ Boolean Gets or sets a value that indicates whether the task is manually scheduled.
Name ✓ʷ ✓ʷ ✓ʷ String Gets or sets the task name.
Notes ✓ʷ ✓ʷ ✓ʷ String Gets or sets notes about the task.
ParentId ✓ʷ ✓ʷ ✓ʷ Guid Gets or sets the GUID of the parent task in a hierarchical task list.
Start ✓ʷ ✓ʷ ✓ʷ DateTime Gets or sets the task start date.
StatusManager ✓ʷ ✓ʷ ✓ʷ SPUser Gets or sets the status manager of the task.

See Also

DraftTask
DraftTaskCollection
SPUser