Describe the problem/error/question
Hello,
I try to get all emails from a specific sender and create a Jira ticket with all attachments.
I’m facing issue with the attachment field, I’m not sure which one I should use. All my attempts failed (See the screenshot).
My goal is to achieve the following:
- Get all emails from sender with attachment (this works)
- Create a Jira ticket per email (this works)
- Loop over all attachment and add them to previously ticket created) (This I’m not able to make it work)
Appreciate any tips
What is the error message (if any)?
Please share your workflow
Share the output returned by the last node
{
"errorMessage": "The item has no binary field 'data' [item 0]",
"errorDescription": "Check that the parameter where you specified the input binary field name is correct, and that it matches a field in the binary input",
"errorDetails": {},
"n8nDetails": {
"nodeName": "Add attachment",
"nodeType": "n8n-nodes-base.jira",
"nodeVersion": 1,
"resource": "issueAttachment",
"operation": "add",
"itemIndex": 0,
"time": "04/09/2024, 12:00:54",
"n8nVersion": "1.56.2 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"NodeOperationError: The item has no binary field 'data' [item 0]",
" at assertBinaryData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:815:15)",
" at Object.assertBinaryData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2425:64)",
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Jira/Jira.node.js:738:53)",
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:728:42)",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:673:66",
" at processTicksAndRejections (node:internal/process/task_queues:95:5)",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1104:20"
]
}
}
Information on your n8n setup
- n8n version: 1.56.2
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: Ubuntu server