- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 06:52 AM
I have defined a Change Model consisting of:
Scheduled ->Implement, Pending Customer
Pending Customer-> Scheduled, Implement
Implement-> Review, Pending Customer
When I transition my change request into Pending Customer State, The state field shows 'Scheduled'. On checking the state in the List of change requests, the state is Pending Customer. Also, when the request is first loaded it shows Pending customer but Changes to 'Scheduled'
What is happening. I know the request is in pending state but why does the state value change to Scheduled.
But on opening-> State value initially is Pending but switches to "scheduled" on loading
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2022 05:20 AM
Yes it is a custom state. I created it by following the same documentation you mentioned. I still dont know why the problem occured. But somehow it got resolved over the weekend without me making any changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 11:51 AM
Hello
Please check if there is any onload script written in the cakgrnd for state field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 02:43 AM
Hi Saurav,
I am pretty new to ServiceNow. Can you tell me where to find the script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 02:54 AM
Hi Saurav, I couldnt find any specific Client Script that is doing that . I do have all the default scripts active for Change though
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 04:26 AM
Okay I think I have found the problem. The State Fields default is the first choice available.
How can I set the default Value of state field according to the current State the request is in.
Currently, default Value is 1
Can Someone Suggest a Script that i can write here to automatically choose the current State?