TickectList Statistics with linked CI

Moderator: crythias

Locked
Gonzalo
Znuny newbie
Posts: 75
Joined: 06 Nov 2013, 19:20
Znuny Version: 5.0.8
Real Name: Gonzalo

TickectList Statistics with linked CI

Post by Gonzalo »

Hello!

I was triying to extract a ticketlist Statistic with the CI related to do a report, but I could not.

Is there any way to extract a Tickectlist with the configuration elements linked to these tickets?

Thanks
OTRS 5.0.8 with Oracle Linux Server release 7.1 with MariaDB database

---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: TickectList Statistics with linked CI

Post by jojo »

only via sql
"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
Gonzalo
Znuny newbie
Posts: 75
Joined: 06 Nov 2013, 19:20
Znuny Version: 5.0.8
Real Name: Gonzalo

Re: TickectList Statistics with linked CI

Post by Gonzalo »

Thanks jojo!

I don't know how to do the sql query. The problem I have is that the table ticket(id,tn,totle,queue_id,ticket_lock_id,type_id,Service_id,sla_id,user_id,responsible_user_idticket_priority_id...) don't have any colunm related with the table configitem (id, configitem_number, class_id, last_version_id, cur_depl_state_id, cur_inci_state_id, create_time, create_by change_time, change_by )

Maybe there is another table which are related ... Any idea? Neither I see any relationship with the table link_object

Thanks!
OTRS 5.0.8 with Oracle Linux Server release 7.1 with MariaDB database

---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
Gonzalo
Znuny newbie
Posts: 75
Joined: 06 Nov 2013, 19:20
Znuny Version: 5.0.8
Real Name: Gonzalo

Re: TickectList Statistics with linked CI

Post by Gonzalo »

Can anyone help me in this topic?
OTRS 5.0.8 with Oracle Linux Server release 7.1 with MariaDB database

---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
ardli
Znuny newbie
Posts: 27
Joined: 06 Jan 2015, 09:13
Znuny Version: 4.0.x

Re: TickectList Statistics with linked CI

Post by ardli »

jojo wrote:only via sql
Can you give an example of a sql command jojo?

thx
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: TickectList Statistics with linked CI

Post by EXG133 »

I can't give you an exact SQL query, it's not my thing and this is too complicated for me. But perhaps this will help:

Linking is done in the table link_relation supported by link_object, link_state and link_type. If you look at the values in the supporting tables it should be fairly easy to see how it works.

you will have to check the link_relation table for the actual links and the other tables to translate the ID's used in link_relation to human readable values.
Locked