$TicketObject->TicketSearch() in the API

Hi, I've sent the message below to the users-mailinglist, but maybe it's more appropriate in here. Does anyone have a clue what I'm doing wrong? Thanks! Hi, I'm trying to write a script that searches for all open tickets that carry a GPG signature so I can automatically download the needed public keys. While I thought the Search-request would be easy, I'm not getting the expected results. I expected the following search to return all my tickets: my %TicketIDs = $TicketObject->TicketSearch( Result => 'HASH', UserID => 1, Permission => 'rw', ); But instead, it only returns two tickets. The first two I created. Am I missing something here? -- Mark Schouten | Tuxis Internet Engineering KvK: 09218193 | http://www.tuxis.nl/ T: 0318 640168 | info@tuxis.nl M: 06 53463918 | mark@tuxis.nl

Hi Mark,
I'm trying to write a script that searches for all open tickets that carry a GPG signature so I can automatically download the needed public keys. While I thought the Search-request would be easy, I'm not getting the expected results.
I expected the following search to return all my tickets: my %TicketIDs = $TicketObject->TicketSearch( Result => 'HASH', UserID => 1, Permission => 'rw', );
But instead, it only returns two tickets. The first two I created. Am I missing something here?
What about user 1 does not have the required permissions? However, permission 'ro' would be less strict. regards, Torsten Thau -- Torsten Thau, Dipl. Inform. c.a.p.e. IT Labs GbR - Annaberger Str. 240 - D-09125 Chemnitz phone: +49 371 5347 623 cell: +49 176 66 680 680 personal pgp-key: 0x93E0A174 fax: +49 371 5347 625 http://www.cape-it.de

Hi, On Sat, 2010-07-24 at 09:48 +0200, Torsten Thau wrote:
But instead, it only returns two tickets. The first two I created. Am I missing something here?
What about user 1 does not have the required permissions? However, permission 'ro' would be less strict.
AFAIK, user 1 is 'root@localhost' which should have all possible permissions? -- Mark Schouten | Tuxis Internet Engineering KvK: 09218193 | http://www.tuxis.nl/ T: 0318 200208 | info@tuxis.nl M: 06 53463918 | mark@tuxis.nl

Hi,
What about user 1 does not have the required permissions? However, permission 'ro' would be less strict.
AFAIK, user 1 is 'root@localhost' which should have all possible permissions?
Indeed, user 1 is root@localhost. But if you have set up own groups and permissions without adding user 1 to these groups. user 1 won't see tickets in these groups - at least not in the web frontend. regards, Torsten Thau -- Torsten Thau, Dipl. Inform. c.a.p.e. IT Labs GbR - Annaberger Str. 240 - D-09125 Chemnitz phone: +49 371 5347 623 cell: +49 176 66 680 680 personal pgp-key: 0x93E0A174 fax: +49 371 5347 625 http://www.cape-it.de
participants (2)
-
Mark Schouten
-
Torsten Thau