Configuration item in Change Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 09:22 AM
Hi,
Anyone can help to how to edit or change the configuration item on the submitted CR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 09:41 AM
Hi @Vengeful
You can run the background script:
var ga= new GlideRecord("table name");
ga.addQuery("sys_id", "record sysid");
ga.query();
while(ga.next()){
ga.configuration_item="sys id of item";
ga.setWorkflow(false);
ga.update();
Please mark helpful and accept solution if it helped you.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 09:47 AM
So you are advising they break process by running scripts? You think regular users can run background scripts? You also name gr records ga? please don't do this...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 09:51 AM
Hi @emir ,
I respect your advice, I know this is not great practice but I just provided them solution as sometimes due to some reasons some developers need to do this.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 11:19 AM
While it is possible to make the change to the field value via a background script, the issue is that the Change Request has proceeded past being approved. So under best practices, if the details are not correct/accurate. the Change Request should be cancelled and a new one created and submitted with the correct information.
Making modifications like this to an already approved/in process Change Request is bad working practice.