Re: [dev] postmaster pre-filter: search in tickets

Michiel Beijen <[email protected]>
Newsgroups gmane.comp.otrs.user,gmane.comp.otrs.devel
Message-ID <CABD0r10fvso-TtPDmBb4U8+aEk6zSNecpERxmN0CUYyxNmsYOA@mail.gmail.com>
Hi Peter,

On Thu, Oct 25, 2012 at 3:47 PM, Peter Tester <[email protected]> wrote:

> I wrote an postmaster pre-filter that searches in the tickets for an
> existing external ID, if it's existing a new article to this ticket is
> added. Otherwise a new ticket is added.
> My problem is that I have to define the Agent ID (UserID) in the
> Ticketsearch function in the pre-filter.
> How can I handle searches in all tickets and not only supportef by the
> selected agent?
>

This is nice. I think you know we have a Feature Add-On available that does
exactly the same?
http://www.otrs.com/en/software/otrs-help-desk/features/otrs-feature-add-ons/feature-add-on-external-ticket-number-recognition/

If you want to use the TicketSearch function for system stuff, such as
Postmaster filters, use UserID 1, which is hard-coded in the system to see
all tickets.

You'd see this in use throughout the complete code base.
--
Mike

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.