How to edit and save data of a previous node

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?

Hi and welcome to n8n!

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

Lmk, happy to help!

2 Likes

Thank you so much for the information! I was able to redesign my workflow and this time it worked!

1 Like

That’s great! Happy to help :slightly_smiling_face::champagne:

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