Configuration item in Change Request

Vengeful
Mega Sage

Hi,

 

Anyone can help to how to edit or change the configuration item on the submitted CR?

 

Merza_0-1682094051112.png

 

8 REPLIES 8

shivangi k
Kilo Sage

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,

emir
ServiceNow Employee
ServiceNow Employee

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...

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,

Ian Mildon
Tera Guru

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.