Loop - Always Output Data - Doesn't process items and continues to Done

Describe the problem/error/question

I am creating a automation to generate release notes from JIRA. To do this I have to make a number of API request to JIRA.

e.g. Fetch latest releases for a project, then for each release fetch the JIRA EPICS for that release.

I’m utilising the Loop node to help group this up into chunks of processing based on project and then release note and it was working nicely.

I’ve now hit a scenario where I have a release but no epics assigned to it and the workflow stops at the Create Detailed Release Notes/JIRA Fetch EPICs node. Which from reading the docs it should as no output = don’t continue.

I however want the loop to continue to process to allow me to gather all the other release notes. To try solve this I enabled the Always Output Data option on the Loop.

With this enabled though, when I run the loop stops at JIRA EPICS and skips the rest of the items and goes to done and continues onto the Summarize Release Notes node.

How would I handle the above scenario? I want to use loops to help me organise the processing into chunks, but if it finds no epics just return an empty value that I can then detect and handle later as needed.

Appreciate any advice or pointers.

Information on your n8n setup

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

I’m not 100% sure what your issue is but it sounds similar to something I ran into. I found some information on how to use the Rest option on the loop node. You can use an expression like this: in it {{ $prevNode.name === ‘Previous Node Name’ }}

This topic might be helpful or searching more about how to Reset the loop may find more results Nested Loop over item doesn't work properly - #3 by Roman_Garanin