when an incident is resolved by fixed by change . Change number is not showing up in fixed by change field.

prash4
Tera Expert

when an incident is resolved by fixed by change . Change number is not showing up in fixed by change field. 

 

find_real_file.png

16 REPLIES 16

Hello Prash,

var gr = new GlideRecord("incident");
    gr.addQuery("rfc", current.sys_id);  //This statement is null/void
    gr.query();
    while (gr.next()) {
        gs.log('resolve incident test 1' + gr.number);
        gs.log('resolve incident test 2' + current.number);
        gr.state = 6;
        gr.rfc = current.sys_id;
        gr.setWorkflow(false); //Added this line to isolate this codes functionality
        gr.update();
    }

 

Regards,

Abhinay

asifnoor
Kilo Patron

Hello Prash,

when an incident is resolved by fixed by change, are you saying that your incident is being resolved thorugh change request? How do you know, can you epxlain this.

Technically the relationship9 between change and incident is through rfc. if that itself is not established, then how are you saying that incided is resolved by change.