Highlighted
Frequent Contributor.
Frequent Contributor.
601 views

Auto closure of incidents in HPSM 9.4

Hi experts,

 

I have HPSM 9.4 running on a windows machine. I got one requirement saying that, any incident(s) in resolved state for 72 hours, should be closed automatically, inturn related interaction also should get closed. As per my survey it should be done using Process Designer(PD). I'm not much aware of those concepts. 

Pls help me in this.

Thanks in advance.

 

Regards,

Sachin HS

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Auto closure of incidents in HPSM 9.4

Hi, sachin

You should use SLA/SLO to implement the requirement, the SLO is used to define the ticket closure standard, and then do the tailoring to close the ticket physically by RAD/JS in process.

 

Thanks

Desmond

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Auto closure of incidents in HPSM 9.4

Hi Sachin,

This should as we are using SM 9.30 and we made same configuration in our setup.

In Scheduler create a schedule-->

Name:- Auto Close Incident

Status:- rescheduled

class and scedule class:- problem

Expiration and Action time:- give next 15mins ahead of present time.

In Repeat Interval select "other" and enter time as "00:05:00"

in javascript tab enter below script:-

var elapsedTime=2;
var oT = new Date();
oT.setHours(oT.getHours()-parseInt(elapsedTime));
var CT = new XMLDate(oT);
var IncTable = new SCFile("probsummary");
var query="problem.status=\"Resolved\" and update.time<'"+CT.getSCDateTimeString()+"'"
var rc = IncTable.doSelect(query);
if (rc == RC_SUCCESS);
{
do
{
var d = new XMLDate( new Date() );
var js = d.getSCDateTimeString()
IncTable.resolution.push("");
IncTable.problem_status="Closed";
IncTable.open="Closed";
IncTable.resolution.push("*** Auto-Closed by System at "+js+ "***");
IncTable.doUpdate();
}
while (IncTable.getNext()==RC_SUCCESS);
}

 

Regards,

Kiran

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.