Make Incident state to In-progress when on-hold and "waiting until" Date field will reached
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 12:23 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 01:31 PM
Hi @Pratiksha KC,
Your script is fine, but the priority is being overwritten by the priority lookup.
I would suggest you update the impact and urgency fields instead to escalate the priority.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 10:41 PM
Hi @James Chun
Thanks for your reply, but I'm not using or setting the priority field on incident form. I wants to update the state field to In - progress when date is reached.
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 06:06 PM
Sorry, I don't know what I was thinking 😅
But yes, your script looks fine to me, I don't believe there is a need to convert the time zone.
When you say it's not working, do you know where it's not working? Have you narrowed it down to identify if it's one of the following areas?
- GlideRecord query (i.e. no records are returned with the query)
- IF statement (i.e. now.compareTo(holdUntil) >= 0, or
- Setting the state field
Try adding some log statements between the script for debugging.
Cheers