asana.json•14.8 kB
{
"nodeType": "n8n-nodes-base.asana",
"displayName": "Asana",
"description": "Consume Asana REST API",
"version": 1,
"properties": [
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "accessToken",
"options": [
{
"name": "Access Token",
"value": "accessToken"
},
{
"name": "OAuth2",
"value": "oAuth2"
}
]
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "task",
"options": [
{
"name": "Project",
"value": "project"
},
{
"name": "Subtask",
"value": "subtask"
},
{
"name": "Task",
"value": "task"
},
{
"name": "Task Comment",
"value": "taskComment"
},
{
"name": "Task Project",
"value": "taskProject"
},
{
"name": "Task Tag",
"value": "taskTag"
},
{
"name": "User",
"value": "user"
}
]
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create a subtask",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create a subtask"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many subtasks"
}
],
"displayOptions": {
"show": {
"resource": [
"subtask"
]
}
}
},
{
"name": "taskId",
"displayName": "Parent Task ID",
"type": "string",
"default": "",
"description": "The task to operate on",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"subtask"
]
}
}
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "The name of the subtask to create",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"subtask"
]
}
}
},
{
"name": "otherProperties",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Set Assignee on the subtask. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add Field",
"options": [
{
"name": "assignee",
"displayName": "Assignee Name or ID",
"type": "options",
"default": "",
"description": "Set Assignee on the subtask. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
}
],
"displayOptions": {
"show": {
"resource": [
"subtask"
],
"operation": [
"create"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"subtask"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 100,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 500
},
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"subtask"
],
"returnAll": [
false
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Defines fields to return. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add Field",
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"subtask"
]
}
}
},
{
"name": "workspace",
"displayName": "Workspace Name or ID",
"type": "options",
"default": "",
"description": "The workspace to create the task in. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"task"
]
}
}
},
{
"name": "id",
"displayName": "Task ID",
"type": "string",
"default": "",
"description": "The ID of the task to delete",
"required": true,
"displayOptions": {
"show": {
"operation": [
"delete"
],
"resource": [
"task"
]
}
}
},
{
"name": "filters",
"displayName": "Filters",
"type": "collection",
"default": {},
"description": "Properties to search for",
"placeholder": "Add Filter",
"options": [
{
"name": "assignee",
"displayName": "Assignee Name or ID",
"type": "options",
"default": "",
"description": "The assignee to filter tasks on. Note: If you specify assignee, you must also specify the workspace to filter on. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
}
],
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"task"
]
}
}
},
{
"name": "projectId",
"displayName": "Project Name or ID",
"type": "options",
"default": "",
"description": "Project to show the sections of. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"move"
],
"resource": [
"task"
]
}
}
},
{
"name": "section",
"displayName": "Section Name or ID",
"type": "options",
"default": "",
"description": "The Section to move the task to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"move"
],
"resource": [
"task"
]
}
}
},
{
"name": "searchTaskProperties",
"displayName": "Filters",
"type": "collection",
"default": {},
"description": "Properties to search for",
"placeholder": "Add Filter",
"options": [
{
"name": "completed",
"displayName": "Completed",
"type": "boolean",
"default": false,
"description": "Whether the task is marked completed"
},
{
"name": "text",
"displayName": "Text",
"type": "string",
"default": "",
"description": "Text to search for in name or notes"
}
],
"typeOptions": {
"rows": 5
},
"displayOptions": {
"show": {
"operation": [
"search"
],
"resource": [
"task"
]
}
}
},
{
"name": "isTextHtml",
"displayName": "Is Text HTML",
"type": "boolean",
"default": false,
"description": "Whether body is HTML or simple text",
"displayOptions": {
"show": {
"operation": [
"add"
],
"resource": [
"taskComment"
]
}
}
},
{
"name": "text",
"displayName": "Text",
"type": "string",
"default": "",
"description": "The plain text of the comment to add",
"required": true,
"displayOptions": {
"show": {
"operation": [
"add"
],
"resource": [
"taskComment"
],
"isTextHtml": [
false
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Properties of the task comment",
"placeholder": "Add Field",
"options": [
{
"name": "is_pinned",
"displayName": "Pinned",
"type": "boolean",
"default": false,
"description": "Whether to pin the comment"
}
],
"displayOptions": {
"show": {
"operation": [
"add"
],
"resource": [
"taskComment"
]
}
}
},
{
"name": "project",
"displayName": "Project Name or ID",
"type": "options",
"default": "",
"description": "The project where the task will be added. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"add"
],
"resource": [
"taskProject"
]
}
}
},
{
"name": "tag",
"displayName": "Tags Name or ID",
"type": "options",
"default": "",
"description": "The tag that should be added. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"add"
],
"resource": [
"taskTag"
]
}
}
},
{
"name": "userId",
"displayName": "User ID",
"type": "string",
"default": "",
"description": "An identifier for the user to get data of. Can be one of an email address,the globally unique identifier for the user, or the keyword me to indicate the current user making the request.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"get"
],
"resource": [
"user"
]
}
}
},
{
"name": "team",
"displayName": "Team Name or ID",
"type": "options",
"default": "",
"description": "The team this project will be assigned to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"project"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "Other properties to set",
"placeholder": "Add Property",
"options": [
{
"name": "color",
"displayName": "Color",
"type": "options",
"default": "none",
"description": "Color of the project"
},
{
"name": "due_on",
"displayName": "Due On",
"type": "dateTime",
"default": "",
"description": "The day on which this project is due. This takes a date with format YYYY-MM-DD."
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "The name of the project"
},
{
"name": "notes",
"displayName": "Notes",
"type": "string",
"default": "",
"description": "Basic description or notes for the project"
},
{
"name": "owner",
"displayName": "Owner",
"type": "string",
"default": "",
"description": "The new assignee/cardinal for this project"
}
],
"displayOptions": {
"show": {
"resource": [
"project"
],
"operation": [
"update"
]
}
}
}
],
"credentialsConfig": [
{
"name": "asanaApi",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "resource",
"required": false
},
{
"name": "operation",
"required": false
},
{
"name": "taskId",
"required": true
},
{
"name": "completed",
"required": false
},
{
"name": "taskId",
"required": true
},
{
"name": "operation",
"required": false
},
{
"name": "workspace",
"required": true
},
{
"name": "id",
"required": true
},
{
"name": "otherProperties",
"required": false
},
{
"name": "completed",
"required": false
},
{
"name": "operation",
"required": false
},
{
"name": "id",
"required": true
},
{
"name": "id",
"required": true
},
{
"name": "id",
"required": true
},
{
"name": "id",
"required": true
},
{
"name": "id",
"required": true
},
{
"name": "userId",
"required": true
},
{
"name": "name",
"required": true
},
{
"name": "id",
"required": true
},
{
"name": "workspace",
"required": true
},
{
"name": "team",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}