Skip to main content
Question

How do I build an expression for ticket.count to creates a problem?

  • April 9, 2025
  • 2 replies
  • 30 views

Forum|alt.badge.img

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

2 replies

Roxwell
Top Contributor ⭐
Forum|alt.badge.img+9
  • Top Contributor ⭐
  • April 9, 2025

@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. 

 


Forum|alt.badge.img
  • Author
  • Apprentice
  • April 11, 2025

@Roxwell,

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

Have a great weekend