airflow.providers.asana.operators.asana_tasks

Module Contents

Classes

AsanaCreateTaskOperator

This operator can be used to create Asana tasks.

AsanaUpdateTaskOperator

This operator can be used to update Asana tasks.

AsanaDeleteTaskOperator

This operator can be used to delete Asana tasks.

AsanaFindTaskOperator

This operator can be used to retrieve Asana tasks that match various filters.

class airflow.providers.asana.operators.asana_tasks.AsanaCreateTaskOperator(*, conn_id, name, task_parameters=None, **kwargs)[source]

Bases: airflow.models.BaseOperator

This operator can be used to create Asana tasks.

See also

For more information on Asana optional task parameters: https://developers.asana.com/docs/create-a-task

See also

For more information on how to use this operator, take a look at the guide: AsanaCreateTaskOperator

Parameters
  • conn_id (str) – The Asana connection to use.

  • name (str) – Name of the Asana task.

  • task_parameters (dict | None) – Any of the optional task creation parameters. See https://developers.asana.com/docs/create-a-task for a complete list. You must specify at least one of ‘workspace’, ‘parent’, or ‘projects’ either here or in the connection.

execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

class airflow.providers.asana.operators.asana_tasks.AsanaUpdateTaskOperator(*, conn_id, asana_task_gid, task_parameters, **kwargs)[source]

Bases: airflow.models.BaseOperator

This operator can be used to update Asana tasks.

See also

For more information on Asana optional task parameters: https://developers.asana.com/docs/update-a-task

See also

For more information on how to use this operator, take a look at the guide: AsanaUpdateTaskOperator

Parameters
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

class airflow.providers.asana.operators.asana_tasks.AsanaDeleteTaskOperator(*, conn_id, asana_task_gid, **kwargs)[source]

Bases: airflow.models.BaseOperator

This operator can be used to delete Asana tasks.

See also

For more information on how to use this operator, take a look at the guide: AsanaDeleteTaskOperator

Parameters
  • conn_id (str) – The Asana connection to use.

  • asana_task_gid (str) – Asana Task ID to delete.

execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

class airflow.providers.asana.operators.asana_tasks.AsanaFindTaskOperator(*, conn_id, search_parameters=None, **kwargs)[source]

Bases: airflow.models.BaseOperator

This operator can be used to retrieve Asana tasks that match various filters.

See also

For a list of possible filters: https://developers.asana.com/docs/update-a-task

See also

For more information on how to use this operator, take a look at the guide: AsanaFindTaskOperator

Parameters
  • conn_id (str) – The Asana connection to use.

  • search_parameters (dict | None) – The parameters used to find relevant tasks. You must specify at least one of project, section, tag, user_task_list, or both assignee and workspace either here or in the connection.

execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?