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

 Here is the code. and state of incident is updating to resolved.

var gr = new GlideRecord("incident");
    gr.addQuery("rfc", current.sys_id);
    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.update();
    }

here in the add query you are querying with rfc field which is nothing but your fixed change field which is empty and not yet populated so you wont find the record at all .

so can you tell me the link between incident and change where  on the change request form is the incident stored or any related list ?

fixed by change should be populated in incident related list when its associated change request is closed.

Abhinay1
Giga Expert

Hello Prash,

Please help me understand,

1) Is there any reference field on Change Request where we store Incident number?

2) Is there any field on Incident request where we store Change number?

3) What is the back-end name of 'Fixed by Change' field?

4) Are we 100% certain that the incident is being closed by this Business Rule? with the log statements may be you can confirm.

 

Regards,

Abhinay

Hi @Abhinay 

back -end name of Fixed by Change' field > 'rfc'

Yes closing by BR i have checked the logs.