query tickets by City or other customer information
Moderator: crythias
-
- Znuny newbie
- Posts: 59
- Joined: 24 Jul 2012, 18:20
- Znuny Version: 3.1.7
- Real Name: Girish Mungra
query tickets by City or other customer information
Hi,
is it possible to obtain a list of tickets raised from a particular city?
is it possible to obtain a list of tickets raised from a particular city?
OTRS 3.1.7 on Linux RedHat with MySQL database connected to an Active Directory for Agents and Customers.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: query tickets by City or other customer information
Short answer: No.
Longer answer: It's really not that simple unless customer information is in the database.
If the customer information is in the database, you could query with a join.
If the customer information is in, for instance, ldap, you will best be served creating an export module that uses the API to get the City.
It's not built-in to do that.
The other possibility would be to use dynamic fields to store this.
"Can I auto-copy from the customer?"
No.
Longer answer: It's really not that simple unless customer information is in the database.
If the customer information is in the database, you could query with a join.
If the customer information is in, for instance, ldap, you will best be served creating an export module that uses the API to get the City.
It's not built-in to do that.
The other possibility would be to use dynamic fields to store this.
"Can I auto-copy from the customer?"
No.
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
-
- Znuny newbie
- Posts: 59
- Joined: 24 Jul 2012, 18:20
- Znuny Version: 3.1.7
- Real Name: Girish Mungra
Re: query tickets by City or other customer information
Hi,
Was indeed able to do that using sql query.
One thing I haven't figured out though is how to join the table dynamic_field to the ticket table.
Was indeed able to do that using sql query.
One thing I haven't figured out though is how to join the table dynamic_field to the ticket table.
OTRS 3.1.7 on Linux RedHat with MySQL database connected to an Active Directory for Agents and Customers.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: query tickets by City or other customer information
You can use the DynamicFieldValue API to get your information...
dynamic_field_value.value_text, value_date, or value_int hold the value of dynamic_field_value.field_id=dynamic_field.id
dynamic_field.name is the short name (fieldname)
dynamic_field.label is the display name
dynamic_field_value.object_id is the article.id or ticket.id (based upon dynamic_field.object_type)
The ticket table doesn't know of dynamic fields.
dynamic_field_value.value_text, value_date, or value_int hold the value of dynamic_field_value.field_id=dynamic_field.id
dynamic_field.name is the short name (fieldname)
dynamic_field.label is the display name
dynamic_field_value.object_id is the article.id or ticket.id (based upon dynamic_field.object_type)
The ticket table doesn't know of dynamic fields.
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
-
- Znuny newbie
- Posts: 59
- Joined: 24 Jul 2012, 18:20
- Znuny Version: 3.1.7
- Real Name: Girish Mungra
Re: query tickets by City or other customer information
how can I for instance extract ticket details from the database where dynamic_field_eg1's value text is equal to 'test'
OTRS 3.1.7 on Linux RedHat with MySQL database connected to an Active Directory for Agents and Customers.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: query tickets by City or other customer information
read the post you replied to.
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
-
- Znuny newbie
- Posts: 59
- Joined: 24 Jul 2012, 18:20
- Znuny Version: 3.1.7
- Real Name: Girish Mungra
Re: query tickets by City or other customer information
How can I use the DynamicFieldValue API to perform an extract on 'dynamic_field_value.value_text' specific?
OTRS 3.1.7 on Linux RedHat with MySQL database connected to an Active Directory for Agents and Customers.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: query tickets by City or other customer information
What do you want to accomplish? Explain it in English.
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