Hello all,
i'm trying to find tickets that are not been updated in the last X days. In order to do that i created a new Dynamic Field called "changedwithinXdays" of type Multiselect with two values "YES" and "NO", as stated in this post: http://lists.otrs.org/pipermail/otrs/20 ... 39800.html
Then i created 2 GenericAgent jobs:
- a "YES-setter" job that filters "Ticket changed whitin the last X days" that sets my DynamicField to "YES"
- a "NO-setter" job that filters "Ticket changed more than X days ago" that sets DynamicField to "NO"
The problem is that both jobs return to me all tickets as a result, despite the fact that one filter is the opposite of the other one.
Do you know if these filters are working properly? Am i missing something?
Thank you,
Treuz
Ticket filtering in GenericAgent non properly working?
Moderator: crythias
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Ticket filtering in GenericAgent non properly working?
Generic Agent change before 2 days ago and dynamic field value = "Yes" change dynamic field to "No"
Generic Agent change last 2 days and dynamic field value = "No" change dynamic field to "Yes"
Generic Agent change last 2 days and dynamic field value = "No" change dynamic field to "Yes"
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Re: Ticket filtering in GenericAgent non properly working?
Thanks for your answer but i think you are moving too forward, i'm not yet able to set the values of dynamic fields, that's the problem: the filter "change before X days ago" doesn't return me the right results.crythias wrote:Generic Agent change before 2 days ago and dynamic field value = "Yes" change dynamic field to "No"
Generic Agent change last 2 days and dynamic field value = "No" change dynamic field to "Yes"
The best workaround i found is to write a MySQL query with the Date/Time functions and execute it from command-line
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Ticket filtering in GenericAgent non properly working?
Can't replicate doesn't return the right results. OTRS version might be of interest, screenshots of relevant settings may help.Treuz wrote:Thanks for your answer but i think you are moving too forward, i'm not yet able to set the values of dynamic fields, that's the problem: the filter "change before X days ago" doesn't return me the right results.
The best workaround i found is to write a MySQL query with the Date/Time functions and execute it from command-line
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Re: Ticket filtering in GenericAgent non properly working?
I'm using otrs 3.3.7 on CentOS.crythias wrote:Can't replicate doesn't return the right results. OTRS version might be of interest, screenshots of relevant settings may help.Treuz wrote:Thanks for your answer but i think you are moving too forward, i'm not yet able to set the values of dynamic fields, that's the problem: the filter "change before X days ago" doesn't return me the right results.
The best workaround i found is to write a MySQL query with the Date/Time functions and execute it from command-line
There are some screenshot:
This is my ticket queue
This is the filter for the "YES-setter" job
This is the filter for the "NO-setter" job
You do not have the required permissions to view the files attached to this post.
Re: Ticket filtering in GenericAgent non properly working?
No matter if i run the YES or NO-setter job, the number of affected ticket is still 19.
Thank you.
You do not have the required permissions to view the files attached to this post.