Skip to main content

asana@3.0.1

Functions

createTask(params, callback)
getTask(taskGid, params, callback)
getTasks(projectGid, params, callback)
updateTask(taskGid, params, callback)
upsertTask(projectGid, params, callback)

createTask

createTask(params, callback) ⇒ Operation Create a task.

Kind: global function
Access: public

ParamTypeDescription
paramsobjectBody parameters
callbackfunction(Optional) callback function

Example

createTask(
{
name: 'test', "approval_status": "pending", "assignee": "12345"
}
)

getTask

getTask(taskGid, params, callback) ⇒ Operation Get a single task of a given project.

Kind: global function
Access: public

ParamTypeDescription
taskGidstringGlobally unique identifier for the task
paramsobjectQuery params to include.
callbackfunction(Optional) callback function

Example

getTask("taskGid",
{
opt_fields: "name,notes,assignee"
})

getTasks

getTasks(projectGid, params, callback) ⇒ Operation Get the list of tasks for a given project.

Kind: global function
Access: public

ParamTypeDescription
projectGidstringGlobally unique identifier for the project
paramsobjectQuery params to include.
callbackfunction(Optional) callback function

Example

getTasks("projectGid",
{
opt_fields: "name,notes,assignee"
})

updateTask

updateTask(taskGid, params, callback) ⇒ Operation Update a specific task.

Kind: global function
Access: public

ParamTypeDescription
taskGidstringGlobally unique identifier for the task
paramsobjectBody parameters
callbackfunction(Optional) callback function

Example

updateTask("taskGid",
{
name: 'test', "approval_status": "pending", "assignee": "12345"
}
)

upsertTask

upsertTask(projectGid, params, callback) ⇒ Operation Update or create a task.

Kind: global function
Access: public

ParamTypeDescription
projectGidstringGlobally unique identifier for the project
paramsobjectan object with an externalId and some task data.
callbackfunction(Optional) callback function

Example

upsertTask(
"1201382240880",
{
"externalId": "name",
"data": {
name: 'test', "approval_status": "pending", "assignee": "12345"
}

}
)