Hi
I want to check whether a certain dropdown is empty when a ticket is closed and, in that case, add a note to the ticket and reopen the ticket.
I set up a generic agent job that is triggered by a state change
with filter set to Closed successful
action set new state to open
and add note xxx
but I can't find a way to check if the dropdown if empty. The gui only shows the possible values.
Can someone help me on this or point me a different direction?
thanks
jorge
Generic Agent match empty dropdown
Moderator: crythias
-
- Znuny newbie
- Posts: 34
- Joined: 03 Jul 2014, 13:48
- Znuny Version: 6.0.18
- Real Name: Jorge Lima
- Location: Braga, Portugal
Generic Agent match empty dropdown
OTRS 6.0.18 (public/testing) on CentOS with Postgres database
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Generic Agent match empty dropdown
That's not possible with GenericAgents built with the webinterface. You have to write a Perl module that is called with the GenericAgent.
But why don't you make that dropdown mandatory in the close dialog?
But why don't you make that dropdown mandatory in the close dialog?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 34
- Joined: 03 Jul 2014, 13:48
- Znuny Version: 6.0.18
- Real Name: Jorge Lima
- Location: Braga, Portugal
Re: Generic Agent match empty dropdown
hi reneeb
thanks for your reply
I've several forms that allow to select next state.
I could make this dropdown mandatory but, if the next state isn't 'closed', it's ok not to have it filled.
As I don't speak perl, I think i'll have to choose another way
thanks anyway
jlima
thanks for your reply
I've several forms that allow to select next state.
I could make this dropdown mandatory but, if the next state isn't 'closed', it's ok not to have it filled.
As I don't speak perl, I think i'll have to choose another way
thanks anyway
jlima
OTRS 6.0.18 (public/testing) on CentOS with Postgres database