Skip to main content

Hey,

i’m working on a workflow right now that creates a service request and we also have an date field in the ticket properties. I’m trying to populate this field with a date that is one week into the future of the ticket creation.

I can put the current time in, but cant seem to find the formula to put a date into it that is 1 week later.

Is there any way to do that?

 

Thanks in advance!

Hi ​@Philipp12,

You can use an expression in a workflow. The following example adds 7 days to the current time.

 

Since service request fields cannot be edited through an action node, you need to update the fields of the service request via the API. Make sure that there is no approval in place, as this would block editing the service request attached to the ticket. Refer to the API documentation for more details.
https://api.freshservice.com/#update_req_items_of_sr

Best regards
Daniel


@Philipp12 Editing ticket properties is much easier. Refer to this documentation for updating ticket properties: https://api.freshservice.com/#update_ticket_priority


Hi ​@DanielRuff,

 

thanks alot, this worked perfectly!

 

Best regards

Philipp


Reply