Update parent when child closes

Moderator: crythias

Post Reply
rodolfor
Znuny newbie
Posts: 89
Joined: 11 Jun 2020, 14:56
Znuny Version: 6.0.27
Real Name: Rodolfo Rughi
Company: none

Update parent when child closes

Post by rodolfor »

Hi.
I need to write a note in the parent, when one of its chils closes.
Does it exists a component to do that?
Or in wich module (and possibily method) I need to modify the code?
Thanks.

rodolfo
lis9
Znuny newbie
Posts: 55
Joined: 13 Apr 2017, 11:27
Znuny Version: 6.5.4
Real Name: Daniel
Company: Komputronik S.A.

Re: Update parent when child closes

Post by lis9 »

There are possibilities. For instance: if you have OTRS 6.0.x you probably need perl module for this (I have written once such a module).
For Znuny 6.x you have invoker for outgoing webService, which gives more possibilities (I use it in newer processes), for instance: when creating child ticket I send to one of dynamic fields its parent's ID. When closing child ticket (or calling process transition action) I can call webService and update parent ticket using this remembered ID.

Daniel Lisiecki
root
Administrator
Posts: 3955
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Update parent when child closes

Post by root »

Hi,
lis9 wrote: 09 Mar 2023, 23:56 For Znuny 6.x you have invoker for outgoing webService, which gives more possibilities (I use it in newer processes), for instance: when creating child ticket I send to one of dynamic fields its parent's ID.
But you know that you can use the transition action ticket create with a dynamic field passing the ticketid/ticket number with a value like '<OTRS_TICKET_TicketNumber>?
lis9 wrote: 09 Mar 2023, 23:56 When closing child ticket (or calling process transition action) I can call webService and update parent ticket using this remembered ID.
Have you ever tried https://doc.znuny.org/manual/admin/proc ... er-tickets?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
lis9
Znuny newbie
Posts: 55
Joined: 13 Apr 2017, 11:27
Znuny Version: 6.5.4
Real Name: Daniel
Company: Komputronik S.A.

Re: Update parent when child closes

Post by lis9 »

Thank you Roy, for your suggestions.
Parent's ID is just a my choice.
BUT your link to new transtion action parameters is just great! I didn't noticed that! I asked about it in this thread: viewtopic.php?f=53&t=43400 but no one has answered me :) Thanks a lot!

Daniel
rodolfor
Znuny newbie
Posts: 89
Joined: 11 Jun 2020, 14:56
Znuny Version: 6.0.27
Real Name: Rodolfo Rughi
Company: none

Re: Update parent when child closes

Post by rodolfor »

Thank you all for the valuable information.
I will try these techniques and post here the solution I find.
thank you!
Post Reply