> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Task

Create a task in a workspace, project or under a parent task.

**Note**: You must provide one of these parameters:

* `Workspace`
* `Project IDs`
* `Parent Task ID`

<Note>
  External Documentation

  To learn more, visit the [Asana documentation](https://developers.asana.com/reference/createtask).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter      | Description                                                                                        |
  | -------------- | -------------------------------------------------------------------------------------------------- |
  | Assignee ID    | The global ID of the user to assign the task to.                                                   |
  | Due At         | The date and time on which this task is due.                                                       |
  | Name           | The name of the task.                                                                              |
  | Notes          | Information associated with the task.                                                              |
  | Parent Task ID | The ID of an existing task. The newly created task will be added as a subtask of this parent task. |
  | Project IDs    | A comma-separated list of project IDs to add the task to.                                          |
  | Start At       | The date and time on which work begins for the task.                                               |
  | Workspace      | The workspace global ID.                                                                           |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                                              |
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Approval Status  | The approval status of this task.<br /><br />This parameter is synchronized with the `Completed` parameter, meaning `pending` translates to `false` while `approved`, `rejected`, and `changes_requested` translate to `true`. If you set the `Completed` parameter to `true`, this parameter will be set to `approved`. |
  | Completed        | Select to mark the task complete.<br /><br />This parameter is synchronized with the `Approval Status` parameter, meaning that if this parameter is `checked`, the `Approval Status` parameter will automatically be set to `approved`.                                                                                  |
  | Followers        | A comma-separated list of identifying users. These can either be the string "me", an email, or the global ID of a user.                                                                                                                                                                                                  |
  | Liked            | When checked, the task is liked by the authorized user.                                                                                                                                                                                                                                                                  |
  | Resource Subtype | The subtype of this resource.<br /><br />**Note**: The `Resource Subtype` `milestone` represent a single moment in time. This means tasks with this subtype cannot have a `Start Date`.                                                                                                                                  |
  | Tags             | A comma-separated list of tag global IDs.                                                                                                                                                                                                                                                                                |
</div>

## Example Output

```json theme={"dark"}
{
	"data": {
		"gid": "<string>",
		"num_likes": 2,
		"num_hearts": 0,
		"workspace": {
			"gid": "<string>",
			"resource_type": "<string>",
			"name": "<string>"
		},
		"start_at": null,
		"start_on": null,
		"resource_subtype": "<string>",
		"due_at": null,
		"due_on": null,
		"completed_at": null,
		"assignee_status": "<string>",
		"completed": false,
		"actual_time_minutes": 0,
		"assignee": null,
		"notes": "<string>",
		"name": "<string>",
		"modified_at": "2009-01-17T19:48:46.475Z",
		"created_at": "2000-01-02T11:42:43.230Z",
		"resource_type": "<string>",
		"projects": [
			{
				"gid": "<string>",
				"resource_type": "<string>",
				"name": "<string>"
			}
		],
		"tags": [],
		"parent": null,
		"likes": [],
		"hearts": [],
		"liked": false,
		"hearted": false,
		"memberships": [
			{
				"project": {
					"gid": "<string>",
					"resource_type": "<string>",
					"name": "<string>"
				},
				"section": {
					"gid": "<string>",
					"resource_type": "<string>",
					"name": "<string>"
				}
			}
		],
		"permalink_url": "<string>",
		"followers": [
			{
				"gid": "<string>",
				"resource_type": "<string>",
				"name": "<string>"
			}
		],
		"custom_fields": [
			{
				"gid": "<string>",
				"resource_type": "<string>",
				"display_value": null,
				"enabled": true,
				"is_formula_field": false,
				"name": "<string>",
				"type": "<string>",
				"resource_subtype": "<string>",
				"enum_value": null,
				"enum_options": [
					{
						"gid": "<string>",
						"resource_type": "<string>",
						"enabled": true,
						"name": "<string>",
						"color": "<string>"
					},
					{
						"gid": "<string>",
						"resource_type": "<string>",
						"enabled": true,
						"name": "<string>",
						"color": "<string>"
					}
				],
				"created_by": {
					"gid": "<string>",
					"resource_type": "<string>",
					"name": "<string>"
				}
			}
		]
	}
}
```

## Workflow Library Example

[Create Task with Asana and Send Results Via Email](https://library.blinkops.com/workflows/create-task-with-asana-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-task-with-asana-and-send-results-via-email/canvas" />
</div>
