OTRS Print field

Moderator: crythias

Locked
beablesrl
Znuny newbie
Posts: 5
Joined: 30 Aug 2012, 09:47
Znuny Version: 3.1.7
Real Name: Angela Leone
Company: Be Able s.r.l.

OTRS Print field

Post by beablesrl »

Hi,
we have installed OTRS 3.1.7 and we have to modify the default search printing field.
In Particularly, we have to add the field 'body' to default printing field.
I search in SysConfig file but I have not found the right setting configuration.

Thanks in advance
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS Print field

Post by crythias »

Body is an article element, not a ticket element.
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
beablesrl
Znuny newbie
Posts: 5
Joined: 30 Aug 2012, 09:47
Znuny Version: 3.1.7
Real Name: Angela Leone
Company: Be Able s.r.l.

Re: OTRS Print field

Post by beablesrl »

Thanks for the quick response!
There is another possibility to integrate the field 'body' in the print view?

Thanks in advance.
CSL
Znuny expert
Posts: 159
Joined: 11 Nov 2011, 19:27
Znuny Version: 3.0.11

Re: OTRS Print field

Post by CSL »

I'm not sure what you mean by "the default search printing field". Do you actually mean the default search view?

If so, you can add or remove fields from the default search view in sysconfig by ticking or unticking them inside:

Ticket -> Frontend::Agent::Ticket::ViewSearch
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
beablesrl
Znuny newbie
Posts: 5
Joined: 30 Aug 2012, 09:47
Znuny Version: 3.1.7
Real Name: Angela Leone
Company: Be Able s.r.l.

Re: OTRS Print field

Post by beablesrl »

Thanks for the quick response!
In Frontend::Agent::Ticket::ViewSearch I define the data (or field) used to export the search result in CSV format (es. TicketID, CustomerID, Subject, Body), but I not define the same data to a 'print' format.

Thanks in advance.
CSL
Znuny expert
Posts: 159
Joined: 11 Nov 2011, 19:27
Znuny Version: 3.0.11

Re: OTRS Print field

Post by CSL »

ah ok, I don't think you can customize this through sysconfig. You will probably have to look at changing the perl code used to generate the PDF instead.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS Print field

Post by crythias »

You'd have to be more specific on which article's body fulfills the search request. You could have hundreds of "body" per ticket.
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
beablesrl
Znuny newbie
Posts: 5
Joined: 30 Aug 2012, 09:47
Znuny Version: 3.1.7
Real Name: Angela Leone
Company: Be Able s.r.l.

Re: OTRS Print field

Post by beablesrl »

The term 'body' mean that shown in the attached.

Thanks in advance.
You do not have the required permissions to view the files attached to this post.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS Print field

Post by jojo »

as already mentioned a ticket can have hundreds of bodies.....
"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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS Print field

Post by crythias »

You are searching for *tickets*. The response will be tickets information, which does not include body, because each ticket contains many articles and each article has a body.

I know what you said you want, and what you showed me was the Body for Article 1 of the ticket. What differentiates Article 1's Body from Article 300's Body?
The short answer is: you can't get there from here. You will need to do a sql search for the specific Body you wish to retrieve and export that.

If you want to print all the Article-Body entries for one ticket, just go to the ticket and click print.
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
beablesrl
Znuny newbie
Posts: 5
Joined: 30 Aug 2012, 09:47
Znuny Version: 3.1.7
Real Name: Angela Leone
Company: Be Able s.r.l.

[SOLVED] Re: OTRS Print field

Post by beablesrl »

I solved with define the data (or field) used to export the search result in CSV format (es. TicketID, CustomerID, Subject, Body).
Thanks!
We use OTRS and the customers are very satisfied!
Locked