Skip to main content
New Idea

Workflow Due Date add X number of Days

Related products:Freshservice
  • January 31, 2024
  • 4 replies
  • 85 views

Forum|alt.badge.img+1

I see that in workflows that I can set a due date to a specific date but I would like to see the ability to set the due date out to a specific number of days.

Example:

Group on a ticket is changed from Group A to Group B, once assigned to Group B advance the Due Date out 28 days.

 

Thank you.

4 replies

DanielRuff
Top Contributor ⭐
Forum|alt.badge.img+9
  • Top Contributor ⭐
  • February 1, 2024

Hi @RyanO727 

this is already possible in Freshservice. Just use an expression builder where you use the current due date and try the function “addDays”. Afterwards just set the due date via action node.

We had a similar use case.

Best regards
Daniel


Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 1, 2024

Hey @DanielRuff 

I was looking at those and realized that I have no idea what I am doing, so don’t know how to do it.

What would that expression look like?


DanielRuff
Top Contributor ⭐
Forum|alt.badge.img+9
  • Top Contributor ⭐
  • February 2, 2024

Hi @RyanO727,

try this expression. This one gets the current due date and adds 12 days (make sure expected output is datetime. Afterwards just use the result in an action node.

addDays('{{ticket.due_by_time_iso}}',12)

 

Input: 2020-01-12T08:00:00Z

Output: 2020-01-24T08:00:00Z

Sorry, screenshot is in german. (Set due date to Expression.result)

 

We did similar so this one should work.

 

Best regards

Daniel


Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 2, 2024

@DanielRuff 

I really appreciate the assistance.

Thank you very much.