is there a way to cancel a DDR (or reject) after the IRQ process is kicked off?

Natasha C
Tera Contributor

We have a couple of DDR records that need to be cancelled after the INA was created and the IRQ has been kicked off. The business backed out of the engagement while the IRQ was in "awaiting response". The only option I see for the DDR or the INA is to delete them. However, I do want to keep a record of the DDR being created and then cancelled, even though the INA/IRQ was already kicked off.

 

Is there a way to cancel a DDR (or reject, or mark incomplete) after the IRQ process has already been kicked off?

4 REPLIES 4

Community Alums
Not applicable

Hi @Natasha C ,

OOTB we cannot Reject/Cancel the DDR once IRQ has been triggered.

 

thank you Sandeep. I reached out to support and they provided a script for a temp fix

HI Natasha, 

Can you please provide the  script you recieved from HI team?

 

Workaround:
In order to reject the DDR you will need to run a background script to set the INA to "Closed" and DDR to "IRQ in review". Please fill in the sysid and use the script below to do so.

var ddr_sysId = '';
var ddr_state_irq_in_review = '6';

var ina_sysId = '';
var ina_state_closed = '3';

var gr1 = new GlideRecord('sn_vdr_risk_asmt_internal_assessment');
gr1.get(ina_sysId);
gr1.setValue('state', ina_state_closed);
gr1.update();

var gr2 = new GlideRecord('sn_tprm_dd_request');
gr2.get(ddr_sysId);
gr2.setValue('state', ddr_state_irq_in_review);
gr2.update();