Adding attachment to closed incident

Nikita35
Kilo Guru

Hi

I need to change priority for a closed incident from p1 to p4 as it is users requirement.

Can I add attachment to closed incident ?

please advice.

Regards,

Nikita Khavnekar

3 REPLIES 3

Harish KM
Kilo Patron
Kilo Patron

This shud help u for attachement



Attachments to close incidents



And for priority change. You can run a backgorund script


Regards
Harish

Thanks


shloke04
Kilo Patron

Hi Nikita,



For changing the Priority of Closed Incident, you can use the below background script:



var gr = new GlideRecord('incident');


var string='numberININC0010056,INC0010057,';                             //Replace this query with the Incident Numbers you want to update


gr.addEncodedQuery(string)


gr.query();


while(gr.next())


{


gr.setWorkflow(false);


gr.autoSysFields(false);


gr.impact = 1;                   // Update the Impact Value as desired


gr.urgency = 3;             // Update the Urgency Value as desired


gr.priority = 3;                 // Update the Priority Value as desired


gr.update();


}



Hope this helps. Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke