Skip to main content
Solved

Scheduled Workflow with Ticket Age


michaelmartel
Skilled Expert
Forum|alt.badge.img+9

I want to create a scheduled workflow to run daily to do an action on tickets older than 60 days. Ticket age is not an option in Condition. Any ideas on how I can accomplish this?

Best answer by eeha0120

Hi Michael.

Yes, that’s not available.

You need to use an Expression for that.

You may use (please, ensure to adapt to your time zone):

diffInDays("{{ticket.created_at_iso}}", today('America/Bogota'))

 

And then compare with that result.

 

You should end with a workflow similar to the following (adapting to your need, of course):

 

Here are the last two nodes you need:

 

 

That way, you’d be able to compare a ticket date creation against today, and perform any desired action when that value is greater to 60.

 

 

Hope this helps.

 

 

Regards,

View original
Did this topic help you find an answer to your question?

9 replies

eeha0120
Skilled Expert
Forum|alt.badge.img+12
  • Skilled Expert
  • 732 replies
  • Answer
  • August 31, 2023

Hi Michael.

Yes, that’s not available.

You need to use an Expression for that.

You may use (please, ensure to adapt to your time zone):

diffInDays("{{ticket.created_at_iso}}", today('America/Bogota'))

 

And then compare with that result.

 

You should end with a workflow similar to the following (adapting to your need, of course):

 

Here are the last two nodes you need:

 

 

That way, you’d be able to compare a ticket date creation against today, and perform any desired action when that value is greater to 60.

 

 

Hope this helps.

 

 

Regards,


michaelmartel
Skilled Expert
Forum|alt.badge.img+9
  • Author
  • Skilled Expert
  • 30 replies
  • August 31, 2023
eeha0120 wrote:

Hi Michael.

Yes, that’s not available.

You need to use an Expression for that.

You may use (please, ensure to adapt to your time zone):

diffInDays("{{ticket.created_at_iso}}", today('America/Bogota'))

 

And then compare with that result.

 

You should end with a workflow similar to the following (adapting to your need, of course):

 

Here are the last two nodes you need:

 

 

That way, you’d be able to compare a ticket date creation against today, and perform any desired action when that value is greater to 60.

 

 

Hope this helps.

 

 

Regards,

Perfect! 

Thanks!

 

 


eeha0120
Skilled Expert
Forum|alt.badge.img+12
  • Skilled Expert
  • 732 replies
  • August 31, 2023
michaelmartel wrote:
eeha0120 wrote:

Hi Michael.

Yes, that’s not available.

You need to use an Expression for that.

You may use (please, ensure to adapt to your time zone):

diffInDays("{{ticket.created_at_iso}}", today('America/Bogota'))

 

And then compare with that result.

 

You should end with a workflow similar to the following (adapting to your need, of course):

 

Here are the last two nodes you need:

 

 

That way, you’d be able to compare a ticket date creation against today, and perform any desired action when that value is greater to 60.

 

 

Hope this helps.

 

 

Regards,

Perfect! 

Thanks!

 

 

Anytime. Glad I could help.

 

Would you mind to please ensure to mark as Solved, so others with similar inquiries may also find this information?

 

Thanks in advance.

 

 

Regards,


  • Community Debut
  • 1 reply
  • May 8, 2024

Hi,

 

Can you please assist me with error I get? not sure what is invalid here.
 

 


  • Community Manager
  • 3 replies
  • July 26, 2024

Hi @Venky24,

 

Please remove the single quotes in the placeholder value using to test the Expression as shown below. 

 

 

Thank you!


Forum|alt.badge.img+8
  • Skilled Expert
  • 89 replies
  • July 26, 2024

where did the expression ticket.create_at_iso come from?  Is there a list of these specific to Freshservice??


Is there a Last Modified Date that can be used instead of ticket.created_at_iso ?


Forum|alt.badge.img+2
  • Skilled Expert
  • 7 replies
  • October 1, 2024

I would also like to know if there’ is a list with available expressions - and if there is a Last Modified Date variant of the ticket.created_at_iso 


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
ITMike wrote:

where did the expression ticket.create_at_iso come from?  Is there a list of these specific to Freshservice??

There are few pages but I found some that aren’t documented at all. 

 

TemplateCastle wrote:

Is there a Last Modified Date that can be used instead of ticket.created_at_iso ?

MireilleR wrote:

I would also like to know if there’ is a list with available expressions - and if there is a Last Modified Date variant of the ticket.created_at_iso 

You can do trial and error but easier is to use the web request node and parser nod to get that data. 
https://api.freshservice.com/v2/#view_a_ticket


Reply