Clickup if node for taskDeleted

Trying to route the execution using if node for clickup event taskdeleted

if have added the if node and tried expression and fixed but failed. thought the event is task.deleted result is false. I have attached the image of what I have done. Dono how to fix this.

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @Vinod_Kanted

That looks very odd, can you share the workflow json so we can take a look and see what is going on?

Thanks, I got it sorted the other way
Adda code node to get an output true or false

return items.map(item => {
// Extract the event value from the current item
const eventValue = item.json.event;

// Create two new properties to mark the true and false branches
if (eventValue === "taskDeleted") {
    // Set a flag to indicate the true branch (task is deleted)
    item.json.task_deleted = true;
} else {
    // Set a flag to indicate the false branch (task is not deleted)
    item.json.task_deleted = false;
}

// Log the event to verify
console.log('Event value:', eventValue);

// Return the item with new properties
return item;

});

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