I’m building an n8n workflow to create Jira tickets from Google Sheets. My workflow follows these steps:
Trigger: Google Sheets fetches new rows.
HTTP Request: Searches for a Jira ID based on the email from the sheet.
Create Jira Issue: Uses the retrieved Jira ID as the “reporter.”
The Problem
If the email does not belong to an existing Jira user, the HTTP request does not return any value. When this happens, the workflow does not create a Jira ticket and does not throw an error.
What I Want to Achieve
If the HTTP request fails to find a Jira ID, I want to:
Set a default “reporter” ID (e.g., a service account).
Ensure the Jira ticket is created even if the email is not in Jira.
What I Have Tried
I don’t have Set Node or Function Node in my n8n instance.
I tried using an IF Node with Jira id does not exist or return an empty value (as attached images), but it does not work.
The code block will check if the output of HTTP request exists. If it exists, it will return that output, else, you can return a different output with the “default” accountId that you want. You can then pass this code block as an input to the Jira node to create the issue.
@hrishikesh I’ve set it up as you advised, but it only executes to the “HTTP Request” node. The subsequent nodes, including “Code” and “Jira create,” are not running and there are no error alerts as image: