Dashlet using "ResponsibleID"

Moderator: crythias

Locked
mpmnu
Znuny newbie
Posts: 21
Joined: 17 Dec 2013, 11:49
Znuny Version: 3.3.x

Dashlet using "ResponsibleID"

Post by mpmnu »

Hello fellow OTRS users,

I ran into a new problem today:

I wrote my own Dashlet (Copied the original OpenTicket Dashlet to be honest) and changed the Item "Attributes" to include "ResponsibleID=5" (and changed the name of course). The Dashlet can be used, but the Dashlet shows all Tickets. But as far as I understand, it should show only tickets where the Responsible agent ID is 5. If I simply search for that user, it works. What did I miss?

Regards
Using OTRS ITSM 3.2.9 and KIX4OTRS 5.1.1 on Ubuntu 12.04 LTS with MySQL
reneeb
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: Dashlet using "ResponsibleID"

Post by reneeb »

It should be "ResponsibleIDs=5" (note the additional "s"). You can use any parameter the ticket search api allows. You can find them at http://otrs.perl-services.de/docs/otrs/ ... earch.html
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
mpmnu
Znuny newbie
Posts: 21
Joined: 17 Dec 2013, 11:49
Znuny Version: 3.3.x

Re: Dashlet using "ResponsibleID"

Post by mpmnu »

Hello there,

the problem with ResponsibleIDs is that as soon as I use that i get an Error 500 trying to use that Dashlet. Is my format wrong? Maybe its ResponsibleIDs=[5] or ResponsibleIDs='5'?
Using OTRS ITSM 3.2.9 and KIX4OTRS 5.1.1 on Ubuntu 12.04 LTS with MySQL
reneeb
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: Dashlet using "ResponsibleID"

Post by reneeb »

What does the Apache and the OTRS log say? It should indicate what's the error.
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
mpmnu
Znuny newbie
Posts: 21
Joined: 17 Dec 2013, 11:49
Znuny Version: 3.3.x

Re: Dashlet using "ResponsibleID"

Post by mpmnu »

APACHE log contains "Can't use an undefined value as an ARRAY reference at /opt/otrs/KIX4OTRS/Kernel/Output/HTML/DashboardTicketGeneric.pm line 655" and OTRS Log does not contain any information about this Problem (only regular Notices)

Looking into the .pm right now

-> Looked though the .pm and pretty much all of the Key and value setting process, but didnt find any error. Most probably just a stupid mistake on my end.
Using OTRS ITSM 3.2.9 and KIX4OTRS 5.1.1 on Ubuntu 12.04 LTS with MySQL
Locked