[SOLVED] TransitionAction: CreateTicket - new ticketID

Moderator: crythias

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

[SOLVED] TransitionAction: CreateTicket - new ticketID

Post by lis9 »

Hello!

In my process i have to create child ticket to my process ticket. The child ticket is a simple ticket in different queue. The action I want to do is to close all process ticket children when one of transitions occurs. Of course I can use ForeignTicketID or ForeignTicketNumber parameter to close other tickets in transition action of process ticket, but the problem is that when I create new child ticket in TA there is no possibility to save child number or ID to parent ticket, I can only send parent id or number to DF of child ticket :(
Do you have ideas how to return child id/number to parent ticket during creation in TA? Other way?

Daniel Lisiecki
Last edited by lis9 on 25 May 2023, 15:18, edited 1 time in total.
root
Administrator
Posts: 4043
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: TransitionAction: CreateTicket - new ticketID

Post by root »

Hi,

Yes, the first transition action of the child sends back it's TicketID or TicketNumber to the parent with Foreign*. Just make the first transition action always work. And make sure you pass the parent's id/number during child creation.

- 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: TransitionAction: CreateTicket - new ticketID

Post by lis9 »

Thank You for your very quick reply.
I had this solution in mind, but this is only applicable if child tickets are process tickets too (as its parent). So my choice is: write a module and attach it to ticket create event using Generic Agent, or make the child tickets process tickets with two activities and one transition.
I think I will make them process tickets because it's easier to maintain.

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

Re: [SOLVED] TransitionAction: CreateTicket - new ticketID

Post by root »

Hi,

No need to write sth. The 2nd transition action can remove the dynamic fields process id and activity id and it's an regular ticket then.

- 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: [SOLVED] TransitionAction: CreateTicket - new ticketID

Post by lis9 »

Thanks for this tip!

Daniel Lisiecki
Post Reply