Getting all tasks from a project in Asana

Describe the problem/error/question

I’m trying out n8n coming over from Make. I’m trying to pull all tasks out of a project. I can set up a node and it says getmany, but there is no option anywhere to set which project it’s supposed to come out of, so I get an error.

I guess I’m doing something wrong, but it seems more like a field is missing.

Please share your workflow

{
“meta”: {
“instanceId”: “d53729d42a482f502a154817e520b0f9d1e3915e8b2a454948f0c711b5113a59”
},
“nodes”: [
{
“parameters”: {
“rule”: {
“interval”: [
{
“field”: “weeks”,
“triggerAtDay”: [
1
],
“triggerAtHour”: 6
}
]
}
},
“id”: “3bf5f0ad-06b1-4ca5-b37d-92d53d6c3a37”,
“name”: “Schedule Trigger”,
“type”: “n8n-nodes-base.scheduleTrigger”,
“typeVersion”: 1,
“position”: [
700,
460
]
},
{
“parameters”: {
“documentId”: {
“__rl”: true,
“value”: “1ySIS1GcGBSdmQXNMoqb52Fter8jzAzStrpOWD8z-MA8”,
“mode”: “id”
},
“sheetName”: {
“__rl”: true,
“value”: “gid=0”,
“mode”: “list”,
“cachedResultName”: “Weekly Projects”,
“cachedResultUrl”: “https://docs.google.com/spreadsheets/d/1ySIS1GcGBSdmQXNMoqb52Fter8jzAzStrpOWD8z-MA8/edit#gid=0
},
“options”: {}
},
“id”: “209f257e-baa2-4b7f-a6c6-51a05a964bf2”,
“name”: “Google Sheets”,
“type”: “n8n-nodes-base.googleSheets”,
“typeVersion”: 3,
“position”: [
920,
460
],
“credentials”: {
“googleSheetsOAuth2Api”: {
“id”: “2”,
“name”: “Google Sheets account”
}
}
},
{
“parameters”: {
“authentication”: “oAuth2”,
“resource”: “project”,
“id”: “={{ $json[‘Project GID’] }}”
},
“id”: “0dc13a37-bd2e-4c0a-a472-b8f41b9b690b”,
“name”: “Asana”,
“type”: “n8n-nodes-base.asana”,
“typeVersion”: 1,
“position”: [
1140,
460
],
“credentials”: {
“asanaOAuth2Api”: {
“id”: “1”,
“name”: “EOE Asana”
}
}
},
{
“parameters”: {
“authentication”: “oAuth2”,
“operation”: “getAll”,
“returnAll”: true,
“filters”: {}
},
“id”: “c4ae347f-3b81-467d-aee8-f72a24a0b778”,
“name”: “Asana1”,
“type”: “n8n-nodes-base.asana”,
“typeVersion”: 1,
“position”: [
1340,
460
],
“credentials”: {
“asanaOAuth2Api”: {
“id”: “3”,
“name”: “Asana account”
}
}
}
],
“connections”: {
“Schedule Trigger”: {
“main”: [
[
{
“node”: “Google Sheets”,
“type”: “main”,
“index”: 0
}
]
]
},
“Google Sheets”: {
“main”: [
[
{
“node”: “Asana”,
“type”: “main”,
“index”: 0
}
]
]
},
“Asana”: {
“main”: [
[
{
“node”: “Asana1”,
“type”: “main”,
“index”: 0
}
]
]
}
}
}

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @heathweaver, welcome to the community :tada:

I’m trying to pull all tasks out of a project. I can set up a node and it says getmany, but there is no option anywhere to set which project it’s supposed to come out of, so I get an error.

I am not sure which error exactly you are seeing or which version of n8n you are running, but assuming it’s a relatively recent one you can find option to specify a project ID under Add Filter like so:

To dynamically populate this field based on your incoming data you’d need to use an expression here instead of selecting a dropdown value. You can see this option when hovering over the field:

image

Hope this helps!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.