Skip to main content

How do I build an expression for a workflow automation in Freshservice that if a ticket.count is equal or greater than 5 it creates a problem

@tlfeil 

Love an interesting question! 

 

Expression

if ( length('{{P1.child_ids_number | replace: " ", ""}}') - length('{{P1.child_ids_number | replace: " ", "" | replace: "," , ""}}') == 4, 'Yes', 'No')

So we are counting the number of , in the array to indicate how many numbers are in it. 

 


@Roxwell,

Thank you for the help, I will build this out next week and let you know how it goes.

Have a great weekend