Trigger an action based on ticket creation date

Answered


Posted Feb 15, 2024

I want to create a trigger that track the ticket creation date so that if it's for example between 10 pm to 8 am it will assigned to certain group and viewed in certain group , how can we do that whether internally or by using Plugin from the market place ?!


1

7

7 comments

image avatar

Jacob the Moderator

Zendesk LuminaryCommunity Moderator

Hi Abdelhameed Khaled 👋

You could use a combination of triggers and schedules to achieve that.

You'll need

  • A schedule that divides your workdays into scheduled and unscheduled times,
  • A trigger that sets this 👆initial schedule upon ticket creation,
  • A trigger that sets the Group you want the ticket to go to within scheduled hours, and
  • A trigger that sets the Group you want the ticket to go to outside of scheduled hours.
  • (Optional) you should have schedules for each of those groups as well and triggers that set them after the initial schedule has determined if creation is within or outside of scheduled hours.

Here 👆 the "Initial schedule" is set upon ticket creation, a trigger below checks if the ticket has been created outside of business hours and in this case sets the "EMEA" schedule - you could set the group in the same action, but I would opt for a separate trigger per action.

This is an example trigger to set the second schedule

 

This is the initial schedule: 

 

If you have more than two time slots you need to route based on, then you could have multiple initial schedules that further refine the scheduled ours.

I hope this helps you out, please let me know if you have questions or need more details.

1


image avatar

Brandon Tidd

Zendesk LuminaryUser Group LeaderThe Humblident Award - 2021Community Moderator

I second the workflow so accurately captured by Jacob the Moderator!

0


image avatar

Stephan Marzi

Zendesk Luminary

Hi Abdelhameed Khaled,

The above mentioned topics are great. In case you would like to have another option, please have in mind that automations are also a possible way to change the group of tickets. In fact the opening hours are the best way in order to organize the time based routing and I would also recommend to use a trigger.

Regards, 

Stephan

0


Hello Stephan Marzi Brandon Tidd Jacob the Moderator Thank you for your response , I have another question is it possible to do in Team Plan ? one way or another 

0


image avatar

Brandon Tidd

Zendesk LuminaryUser Group LeaderThe Humblident Award - 2021Community Moderator

Hey Abdelhameed Khaled -

Unfortunately business schedules is only available in the Growth plan or higher.  Without this feature, Zendesk doesn't have an accurate way to capture time, without going through webhooks that grab system time and putting them into custom fields.... That being said, the easiest solution might be to just code into your auto-responder "Requests made after 8PM will be answered on the next business day."  Hopes this helps!

Brandon

0


image avatar

Stephan Marzi

Zendesk Luminary

Oh, Brandon already mentioned the availability. Especially the Enterprise Suite will offer you the possibility to add more plans you can work with.

Regards, Stephan

0


0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post