Skip to contents

Returns the compact task records for all tasks within the given project, ordered by their priority within the project. Tasks can exist in more than one project at a time.

Usage

asn_get_tasks_for_project(
  project_gid,
  completed_since,
  limit,
  offset,
  opt_fields
)

Arguments

project_gid

(character scalar) Globally unique identifier for the project.

completed_since

(optional) (character scalar) Only return tasks that are either incomplete or that have been completed since this time. Accepts a date-time string or the keyword now.

limit

(optional) (integer scalar) Results per page. The number of objects to return per page. The value must be between 1 and 100.

offset

(optional) (character scalar) Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'

opt_fields

(optional) (list) Defines fields to return. Some requests return compact representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.

Value

The task is the basic object around which many operations in Asana are centered.

PropertyClassDescription
gidcharacter scalarGlobally unique identifier of the resource, as a string.
resource_typecharacter scalarThe base type of this resource.
namecharacter scalarThe name of the task.
resource_subtypecharacter scalarThe subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning. The resource_subtype milestone represent a single moment in time. This means tasks with this subtype cannot have a start_date.