Hello everyone, I’m completely new to N8N, but I’m trying to alter data on a previous node, and can’t find a way to properly do it.
So to give more context, I’m trying to convert a google chat message into a Jira issue, converting the message and attatchments (download uri) sent in the card description, but I’m strugling when iterating over the attatchments.
I’ve tried both the Edit Fields (Set) as the Code node to set the updated string to the previous node, but to no avail.
Am I doing something wrong, or is it possible to edit fields from previous nodes?
To answer your question:
You can’t directly modify data “in” a previous node, but what you can do is create a new version of the data in a later node by using the previous node’s output as a base and adjusting it as needed.
Here’s how to handle it:
Use a Set or Code node after the attachments node
You can take the output from the previous node and either: set new fields or override existing ones using a Set node
Or use a Code node to loop through the attachments and create the description string you need