- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 08:02 AM
I am creating a ui action called 'unapproved' to flag changes that were done without finishing the change process. the scenario goes like this: someone starts a change and requests approvals, but instead of waiting for these approvals to go through and then presenting the change to the CAB, they just go ahead and make the change in prod.
what this ui action is doing is taking the change from assess state and is skipping the authorize and schedule states and updates the state to implement. but then when the change management team continues the process and closes the change (with close code = unapproved) then the change goes to the close state for an instant and all of a sudden the change request goes back to authorize. then we see a message under the state field stating that the "Change is waiting for approval".
it is clear that I am missing something to make that approval go away. but I am having a hard time finding where that message is coming from so I can code an exception for this unapproved process.
I am new to ServiceNow your help will be greatly appreciated. thank you!
Efra
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2019 07:48 AM
Hi Efra,
There is OOB Business rule on change_request table, Business rule name : State model - Can change state?
https://YourServicenowinstance.service-now.com/sys_script.do?sys_id=f3fbe0d8cb200200d71cb9c0c24c9c93&sysparm_record_target=sys_script&sysparm_record_row=40&sysparm_record_rows=49&sysparm_record_list=collection%3Dchange_request%5EORcollectionINchange_request%2Ctask%5Ecollection%3Dchange_request%5EORDERBYname
Please mark as correct/helpful if the above answer is solve/helps your issues.
Regards,
Harish Murikinati.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 08:09 AM
It's coming from below client script. Show valid states values
You can change the message as per your need.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 08:18 AM
thank you so much David!
my problem is not really the message, something is bringing the change from change back to Authorize state and I dont want that. so how does this script "knows" that the approval was skipped, but more importantly what do I do to code this exception and where.
any thoughts? and thank you again for your help!
Efra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 09:06 AM
it looks like it is the workflow the one that brought the state back to authorized. I am working to code the exception there. I still welcome any other suggestions. thank you all!
Efra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2019 07:33 AM
Hi Efra,
this is happening because of the following Business Rule: Cascade Request Approval to Request Item.
My suggestion is to understand the approval process of the change records, taking a look at their workflow.
Let me know if it helps.