I have 2 issues here:
1. How do I make sure that both the conditions run inside the branch or how do I restructure it?
2. If my lookup has 5 issues, it is creating 5 new tickets, but I want only 1 ticket to be created. this is because it is "for each issue". how do I solve this?
Let me explain my automation flow once:
Scheduled Trigger
└── Lookup recent issues
└── For each issue
├── Create firmId variable
├── Lookup 90-day issues for firmId
├── If > 4 issues
├── Lookup existing Tickets
├── If Ticket already exists for the firmID → Edit and link issues
└── If not → Create new ticket
So basically, I am running a scheduled JQL trigger, and storing firmID from those tickets. Then I am checking if the firmID is used for more than 4 issues in lookup.
if it is more than 4, then there are 2 conditions:
if ticket already exist, then link trigger ticket to existing ticket
if ticket doesn't exist, create a new ticket

I have 2 "IF" conditions in a single branch. Once the first "IF" condition fails, the second one is not even checked for. How do I make it to check for both if conditions?

this is the audit log. it exits after if lookup > 0. but my 2nd IF condition is IF lookup = 0.