Re: Hi, Piku I tried it, through JS but it didn't work. Loo... (1392 Views)
Reply
Frequent Advisor
Luciano80RJ
Posts: 58
Registered: ‎07-29-2010
Message 1 of 7 (1,428 Views)
Accepted Solution

Autoclose Interaction after the Incident related closes automatically

Hi Dear,

 

I have a little issue.


I created a script when a Incident is open with 5 days and problem.status="Pending Customer". It closes automatically.
But the Interaction, which is related with this Incident, no closes automatically.

 

There is some solution to this?

 

Regards,

Honored Contributor
Piku
Posts: 4,136
Registered: ‎06-17-2010
Message 2 of 7 (1,411 Views)

Re: Autoclose Interaction after the Incident related closes automatically

Hi,

To close the related interaction to you have to alter you script accordingly. You have to fined the related interactions by querying screlation table and then close them too.
Number of threads on forum for the same,use logic as shown in below thread,
http://h30499.www3.hp.com/t5/HP-Service-Manager-Service/Auto-an-interaction/m-p/4796157#M54751

http://h30499.www3.hp.com/t5/HP-Service-Manager-Service/Auto-clousre-of-related-tickets/m-p/5207611#...

for RAd script,
http://h30499.www3.hp.com/t5/HP-Service-Manager-Service/Autoresolve-of-Interactions/m-p/5591897#M886...

hth,
____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
Frequent Advisor
Luciano80RJ
Posts: 58
Registered: ‎07-29-2010
Message 3 of 7 (1,405 Views)

Hi, Piku   I tried it, through JS but it didn't work. Loo...

Hi, Piku

 

I tried it, through JS but it didn't work.
Look, when the incident closes, this process is automatically after 5 days in incidents with problem.status = "Pending Customer". I made it in "schedule" that calls a script and it do this process. But this work is not did in Interaction related, the Interaction didn't close.

Honored Contributor
-m-
Posts: 989
Registered: ‎02-22-2011
Message 4 of 7 (1,392 Views)

Re: Hi, Piku I tried it, through JS but it didn't work. Loo...

Make sure the JavaScript uses doAction("close") to close the Incident ticket. The OOB work-flow will automatically create a schedule record to update/close the related Interactions. Using this method, it is not necessary to check the screlation file or iterate thru related records in the JavaScript.

Frequent Advisor
Luciano80RJ
Posts: 58
Registered: ‎07-29-2010
Message 5 of 7 (1,369 Views)

Hi -m-,   Thanks for your reply...   So, I made this func...

Hi -m-,

 

Thanks for your reply...

 

So, I made this functionality in Script Panel Definition (scripts).

Look in my attachment because there is a example what I made! So, this form, I don't know how to work with doAction() because it just accept in JS.

There is some way work with Action in Script Panel Definition?

 

Thanks so much!

Honored Contributor
Piku
Posts: 4,136
Registered: ‎06-17-2010
Message 6 of 7 (1,349 Views)

Re: Hi -m-,   Thanks for your reply...   So, I made this func...

Hi,

Here in this script you have to query the related interaction and then perform the actions.
You have o use the logic like in below thread,
http://h30499.www3.hp.com/t5/HP-Service-Manager-Service/Autoresolve-of-Interactions/m-p/5591897#M886...

hth,
____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
Frequent Advisor
Luciano80RJ
Posts: 58
Registered: ‎07-29-2010
Message 7 of 7 (1,341 Views)

Hi, Piku   I made a adaptation in this script and now it'...

Hi, Piku

 

I made a adaptation in this script and now it's working very well...

 

Thanks a lot, my friend!

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.