Adding Bulk Incident Acceptan Option

AromalM
Kilo Explorer

Hi All,

 

I was exploring the option of adding an ‘Incident Accept’ button to the dropdown. The idea is that during an outage or major issue, users can simply check the corresponding box and select the ‘Accept’ option from the dropdown for quicker handling.

 

Before proceeding further, I would like to get your feedback on this approach and check if there are any objections or business rules that might prevent implementing this feature.

 

Please share your thoughts.

3 ACCEPTED SOLUTIONS

@AromalM 

That's fine, but what happens on Click of that Button from list.

Does it change the State field on INC?

There is nothing which stops you from adding that UI action to list view in Native

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

@AromalM 

something like this, but please enhance

function moveIncident() {

    var selectedRecords = g_list.getChecked().toString();
    // use GlideAjax here and pass these sysIds and then update the state

    var ga = new GlideAjax('checkRecords');
    ga.addParam('sysparm_name', "updateIncident");
    ga.addParam('sysparm_records', selectedRecords);
    ga.getXMLAnswer(function(answer) {
        if (answer == 'valid') {
           alert("Total incidents updated" + selectedRecords.split(',').length);
        }
    });
}

AnkurBawiskar_0-1770614190482.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Hi AromaIM,

 For me , "After selecting “Accept Incident”, the incident state should automatically update from ‘New’ to ‘In‑Progress’ " - its feasible and using UI action and its logic you can achieve it.

 

For this requirement "we can implement a pop‑up notification showing the total number of incidents included in the bulk acceptance action."  , its not that easy as Confirm() method /alert ( method which showing pop-up) stopped working after Xanadu/Yokohoma version.

So you need to achieve it via GlideModal popup with UI page which needs too much development effort.

Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

7 REPLIES 7

@AromalM 

something like this, but please enhance

function moveIncident() {

    var selectedRecords = g_list.getChecked().toString();
    // use GlideAjax here and pass these sysIds and then update the state

    var ga = new GlideAjax('checkRecords');
    ga.addParam('sysparm_name', "updateIncident");
    ga.addParam('sysparm_records', selectedRecords);
    ga.getXMLAnswer(function(answer) {
        if (answer == 'valid') {
           alert("Total incidents updated" + selectedRecords.split(',').length);
        }
    });
}

AnkurBawiskar_0-1770614190482.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi AromaIM,

 For me , "After selecting “Accept Incident”, the incident state should automatically update from ‘New’ to ‘In‑Progress’ " - its feasible and using UI action and its logic you can achieve it.

 

For this requirement "we can implement a pop‑up notification showing the total number of incidents included in the bulk acceptance action."  , its not that easy as Confirm() method /alert ( method which showing pop-up) stopped working after Xanadu/Yokohoma version.

So you need to achieve it via GlideModal popup with UI page which needs too much development effort.

Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

@AromalM 

That's fine, but what happens on Click of that Button from list.

Does it change the State field on INC?

There is nothing which stops you from adding that UI action to list view in Native

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader