I added dynamic field (checkbox) called text1 in:
Ticket::Frontend::AgentTicketClose###DynamicField
so, text1 appears on form when close ticket, and I can check (uncheck) it.
The default value in Dynamic Fields category is set to: Checked
Then in Notifications (Event) I added one, that is based on that text1 field and TicketStateUpdate (close family), so when it is checked and ticket is changed to close state, the notification is sent.
But this works only while closing the ticket with close form (where dynamic field text1 is visible). It doesn’t, e.g., when give answer to the ticket, using template or when state is changed from pending close+ to close.
I assume, that the value of text1 dynamic field is not available outside the close form.
My question is then, how to set it globally with default value set to checked and possibility to change it to uncheck using close form?
[3.3.8] Set dynamic field value globally
Moderator: crythias
-
- Znuny newbie
- Posts: 26
- Joined: 17 Mar 2014, 12:11
- Znuny Version: 3.3.8
- Real Name: Wojciech
- Company: UKE
[3.3.8] Set dynamic field value globally
OTRS 3.3.8
Debian
Debian
-
- Znuny newbie
- Posts: 26
- Joined: 17 Mar 2014, 12:11
- Znuny Version: 3.3.8
- Real Name: Wojciech
- Company: UKE
Re: [3.3.8] Set dynamic field value globally [SOLVED]
1. activate:
Ticket::EventModulePost###TicketDynamicFieldDefault
2. set dynamic field here (Event=TicketCreate, Name=text1, Value=1):
Ticket::TicketDynamicFieldDefault###Element1
In this case, each time a ticket is created, it has set text1 value as above (2).
Regards,
Wojtek
Ticket::EventModulePost###TicketDynamicFieldDefault
2. set dynamic field here (Event=TicketCreate, Name=text1, Value=1):
Ticket::TicketDynamicFieldDefault###Element1
In this case, each time a ticket is created, it has set text1 value as above (2).
Regards,
Wojtek
OTRS 3.3.8
Debian
Debian