Change request cannot be moved from access to authorize
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 02:33 AM
Hi Experts,
Need you help on the below.
A change request cannot be moved from Assess to Authorize state when any associated CTASKS are unassigned to any individual. If in case the requester clicks on Request Approval without assigning the CTASK to an individual, it should throw out a message in Dialog box
Note : Assess to Authorize happens when the change is clicked on Request approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 02:46 AM
Create a before update BR on change table with condition "state changes to Authorize"
var ctask = new GlideRecord('change_request');
ctask.addQuery('change_request',current.sys_id);
ctask.addQuery('assigned_to' , '');
ctask.query();
if(ctask.getRowCount()>0)
{
current.setAbortAction(true);
}
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 03:35 AM
its working partially, which means i clicked on the approvers tab and click on approved i got the error message and after that i assigned the CTASK to the respective person , then its not moving to "Authorize" state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 03:39 AM
After assigning all CTASKs, what action did you do? you need to move it to authorize either through button or change state manually , only then it will work.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 04:09 AM
i got the error message, so have assigned the ctask to a person, and in the change form i should move to Authorize state manually, i have reloaded the form still its in Access state.