How to create a custom report?

Moderator: crythias

Locked
sourabh
Znuny newbie
Posts: 5
Joined: 14 Jan 2011, 06:44
Znuny Version: 3.0.2

How to create a custom report?

Post by sourabh »

Hi,

May I know how to create a custom report in OTRS 3.0.2.
I have tried stats but need customized report.
Shall I use SQL query in SQL box?

I need a report that contains total close tickets, total open tickets, tickets open for 1 day, 3 day, 5 day, 7 day and so on.

If I use the SQL box, please provide the query and procedure how to run the reports.


Regards,
Sourabh
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to create a custom report?

Post by jojo »

you can use SQl from other Tools like jasper reports etc.

You'll find the database scheme here: http://ftp.otrs.org/pub/otrs/misc/
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sourabh
Znuny newbie
Posts: 5
Joined: 14 Jan 2011, 06:44
Znuny Version: 3.0.2

Re: How to create a custom report?

Post by sourabh »

I have the details of the OTRS database.

Could you please give me the Query for the requirement mentioned in previous mail and guide me how to generate reports through OTRS?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to create a custom report?

Post by jojo »

The report generaot (statistics) is easy to understand. For the SQL just try it and play around...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sourabh
Znuny newbie
Posts: 5
Joined: 14 Jan 2011, 06:44
Znuny Version: 3.0.2

Re: How to create a custom report?

Post by sourabh »

I have tried stats but it doesn't pull up a custom report.
For custom report, I have tried different queries but did not work.
Could you explain me SQL query with an example and how to import in excel as well?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to create a custom report?

Post by crythias »

What kind of "custom report" do you want? What exactly do you want to customize?


Stat# / Title / Object / Description
10001 Overview about all tickets in the system TicketAccumulation Current state of all tickets in the system without[..]
10002 List of open tickets, sorted by time left until escalation deadline expires Ticketlist List of open tickets, sorted by time left until es[..]
10003 Changes of status in a monthly overview Monthly overview, which reports status changes per[..]
10004 List of tickets created last month Ticketlist List of all tickets created last month. Order by a[..]
10005 List of tickets closed, sorted by solution time Ticketlist List of tickets closed last month, sorted by solut[..]
10006 List of open tickets, sorted by time left until solution deadline expires Ticketlist List of open tickets, sorted by time left until so[..]
10007 List of tickets closed, sorted by response time. Ticketlist List of tickets closed last month, sorted by respo[..]
10008 List of the most time-consuming tickets Ticketlist List of tickets closed last month which required t[..]
10009 List of open tickets, sorted by time left until response deadline expires Ticketlist List of open tickets, sorted by time left until re[..]
10010 New Tickets TicketAccumulation Total number of new tickets per day and queue whic[..]
10011 List of tickets closed last month Ticketlist List of all tickets closed last month. Order by ag[..]

Each of these can be customized. You just change the range you want. If you want counts, choose the summation.
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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to create a custom report?

Post by jojo »

sourabh wrote: For custom report, I have tried different queries but did not work.

Please show your SQL Queries and your expected output.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sourabh
Znuny newbie
Posts: 5
Joined: 14 Jan 2011, 06:44
Znuny Version: 3.0.2

Re: How to create a custom report?

Post by sourabh »

I need a report that contains total open cases, closed cases, cases open for more than 1 day, 3 day, 5 day and 7 day in a single report. Is it possible with STATS?
If YES, please explain.I think we can pull this report only through SQL.

Please provide a query for this?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to create a custom report?

Post by crythias »

No, it's not possible in Stats. You have more than 5 different things you want to report in one report.

This is a prime thing to hire OTRS to develop for you.
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
sourabh
Znuny newbie
Posts: 5
Joined: 14 Jan 2011, 06:44
Znuny Version: 3.0.2

Re: How to create a custom report?

Post by sourabh »

Is it possible through SQL Query.
If yes, please send me the query.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to create a custom report?

Post by jojo »

it is not possible to send you the query. You should consider to buy professional consulting and support
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
cbravo
Znuny advanced
Posts: 113
Joined: 18 Nov 2010, 00:33
Znuny Version: 3.0

Re: How to create a custom report?

Post by cbravo »

Can I use the 2.4 for 3.04 or has it changed much?
OTRS: 3.08
OS: Ubuntu
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to create a custom report?

Post by jojo »

could you please explain your question?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
cbravo
Znuny advanced
Posts: 113
Joined: 18 Nov 2010, 00:33
Znuny Version: 3.0

Re: How to create a custom report?

Post by cbravo »

jojo wrote:could you please explain your question?
on the link you provided, the latest picture of the relations between the database is for otrs 2.4, there is no 3.04. Can I use 2.4 or has the schema changed much?
OTRS: 3.08
OS: Ubuntu
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to create a custom report?

Post by jojo »

3.0 ist mostly a 2.4 from the database schema
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked