prevent autoresolving incidents from dynatrace

reddy8055
Tera Contributor

Hi,

I am trying to prevent autoclose the incidents from dynatrace when problem title contains "P1_CRITICAL'. Currently all incidents will be created and autoclose from dynatrace alerts. Now we want to exclude auto-closing when ever problem title contains 'P1_critical' and it should stay in open state and all other incidents without 'P1_Critical' should still autoclose. I updated the transform map and its not working. Please help 

 

answer = (function transformEntry(source) {
if ((source.problem_state == "OPEN") && (source.problem_title == 'P1_CRITICAL')) {
return 1;
} else {
// do not update the existing problem state if user disabled autoresolve incidents
if (gs.getProperty('x_dynat_ruxit.autoresolveproblems') == 'true') {
return 6;
} else {
return 1;
}
}
})(source);

 

Thanks,

7 REPLIES 7

To prevent incidents from being closed you need to make sure they do not have a state of On hold with an on hold reason of awaiting problem. Unless you have some other customizations incidents associated to a problem should not auto close unless they have the state and on hold reason mentioned above. 

Is there a way to prevent resolving incident automatically when problem_title contains "P1_CRITICAL" and problem state is CLOSE. Currently whenever problem state is close incidents are resolving automatically.

So what is coming in from your Dynatrace tool? Is it creating problem or incidents. I need to understand the whole process in order to help. Normally as long as the incident is not on hold awaiting problem it will not resolve when the problem is closed.