- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 12:19 PM
Make Incident state to In-progress automatically when on-hold and "waiting until" Date field was reached for Europe/ Berlin Time zone.
I have wrote the Scheduled Job script - Selected Timezone as - Europe/ Berlin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 12:14 AM
And how are you running this? Because it has to run often to not having to wait until hours after the time is there. And yes, scheduled jobs can be tricky when it's with date/time calculation and timezones.
Why not just create a flow? I have done that over and over again with clients having the same requirement and it works perfectly.
Trigger it when 'u_waiting_until' changes and put a wait condition in there to wait until that time (the calculation is already done, because the flow will wait until exactly that moment, no matter the timezone).
Then you do a check to see if the field is still the same (to prevent issues when it has been changed since the flow started). You can do that by setting a flow variable at the start of the flow, capturing the 'u_waiting_until' and check if the current field on the ticket is still the same as the flow variable. If not, just end the flow and if so, you can move it to 'in progress'. In the example below we are using a flow variable to check on the field still being the same.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 12:14 AM
And how are you running this? Because it has to run often to not having to wait until hours after the time is there. And yes, scheduled jobs can be tricky when it's with date/time calculation and timezones.
Why not just create a flow? I have done that over and over again with clients having the same requirement and it works perfectly.
Trigger it when 'u_waiting_until' changes and put a wait condition in there to wait until that time (the calculation is already done, because the flow will wait until exactly that moment, no matter the timezone).
Then you do a check to see if the field is still the same (to prevent issues when it has been changed since the flow started). You can do that by setting a flow variable at the start of the flow, capturing the 'u_waiting_until' and check if the current field on the ticket is still the same as the flow variable. If not, just end the flow and if so, you can move it to 'in progress'. In the example below we are using a flow variable to check on the field still being the same.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 08:34 AM