The CreatorCon Call for Content is officially open! Get started here.

How to set incident state is "WIP" automatically

akin9
Tera Contributor

Hello expets

We have requirment.

 

We have a field is  Due date.  If below conditions are met field will be visible. or else Hide.

akin9_0-1668519746116.png

 

Requirement is 

Incident should switch back to WIP as soon as the set date/time is reached.

Please support to achieve this

16 REPLIES 16

Ankur Bawiskar
Tera Patron
Tera Patron

@akin9 

once date/time is reached -> for this you can use onLoad client script + GlideAjax and check if the current date/time is same or more than the date field value. if yes then do your action

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

 

Thank you for your Quick reply

Can you please share the script it will be useful to me.

i am new to script.

Table-"incident"

field name - "u_postpone_schedule"

In Progress value - "2"

On Hold value - "3"

state - "state "

Requirment is

Ex . ( if below Condition met state needs to be change automatically to INPROGRESS )

akin9_0-1668573077285.png

 

Please support!

Thank you

@akin9 

you can check the date/time is today using GlideAjax

Please start from your side and it will be learning for you as well.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

Thank you for your reply , i will try it.