Adding company name to OTRS dashboard
Moderator: crythias
Adding company name to OTRS dashboard
Helllo,
Anybody has an idea about howto add the company info into the OTRS dashboard?
Kr,
Chris
Anybody has an idea about howto add the company info into the OTRS dashboard?
Kr,
Chris
Re: Adding company name to OTRS dashboard
With Company info I mean the company name
Re: Adding company name to OTRS dashboard
Actually to be even more specific I am just looking for the values that I can fill in in "$QData{}" in the AgentDashboardTicketGeneric.dtl.
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Adding company name to OTRS dashboard
Check out SysConfig, Framework->Core
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: Adding company name to OTRS dashboard
I don't find another option for thiscrythias wrote:Check out SysConfig, Framework->Core
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Adding company name to OTRS dashboard
What you're asking for is that you want to display the company name as a column in the ticket list of the dashboard, not that you want your personal company to be displayed in the admin interface.
I think it might be called CustomerID
I think it might be called CustomerID
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: Adding company name to OTRS dashboard
crythias wrote:What you're asking for is that you want to display the company name as a column in the ticket list of the dashboard, not that you want your personal company to be displayed in the admin interface.
I think it might be called CustomerID
Yes, I want to display the company name as a column in the ticket list of the dashboard. It's possible?
-
- Znuny newbie
- Posts: 7
- Joined: 20 Apr 2010, 18:21
- Znuny Version: 2.4.7
Re: Adding company name to OTRS dashboard
I setup my dashboard to display owner. Customer ID can be done as well. I found this code that worked for me.
I can absolutely not take credit for it, I got it from this URL http://www.mail-archive.com/otrs@otrs.org/msg26704.htmlHere's how I added a column to do this.
Amended Kernel/Output/HTML/Standard/AgentDashboardTicketGeneric.dtl as
follows:
In dtl:block:ContentLargeTicketGenericRow section, add the following before
the "Time" TD element:
<td width="10%">
<a
href="$Env{"Baselink"}Action=AgentTicketCustomer&TicketID=$QData{"TicketID"}
"
onmouseover="window.status='$JSText{"Customer history"}'; return true;"
onmouseout="window.status='';">
<div title="$QData{"CustomerUserID"}">$QData{"CustomerID","15"}</div>
</a>
</td>
A few lines later in the dtl:block:ContentLargeTicketGenericNone block
increase the colspan from 3 to 4.
Re: Adding company name to OTRS dashboard
The solution in the previous message worked for me in OTRS 2.X.... not in 3.X
For 3.X I came up with the following code
But there is a problem I was not able to solve:
The link should open a popup. The class="AsPopup PopupType_TicketAction" was added for this purpose. I copied this from another place where this kind of link was used. But this does not work. As a workaround I added target="_blank", now it at least opens on a different tab.
Any solutions for this?
For 3.X I came up with the following code
Code: Select all
<td> <a href="$Env{"Baselink"}Action=AgentTicketCustomer;TicketID=$QData{"TicketID"}"
target="_blank"
class="AsPopup PopupType_TicketAction"
>$QData{"CustomerID","15"} </a></td>
The link should open a popup. The class="AsPopup PopupType_TicketAction" was added for this purpose. I copied this from another place where this kind of link was used. But this does not work. As a workaround I added target="_blank", now it at least opens on a different tab.
Any solutions for this?
Re: Adding company name to OTRS dashboard
Hi all,
I know that was an old post but I don't figure out how to make this request possible.
As described previously, I'd like to display the company name (or CustomerID at least) as a column in the ticket list of the dashboard.
Is it possible ? If yes, how to do that ?
Thank you in advance.
I know that was an old post but I don't figure out how to make this request possible.
As described previously, I'd like to display the company name (or CustomerID at least) as a column in the ticket list of the dashboard.
Is it possible ? If yes, how to do that ?
Thank you in advance.
Re: Adding company name to OTRS dashboard
It IS possible.
I managed to show the company name in the lists of the dashboard and even the status view.
For the dashboard you need to add the following code to Kernel\Output\HTML\DashboardTicketGeneric.pm (code includes the line numbers) :
Now you have to add the following to Kernel\Output\HTML\Standard\AgentDashboardTicketGeneric.dtl:
At least worked for me on OTRS 3.1.10
I managed to show the company name in the lists of the dashboard and even the status view.
For the dashboard you need to add the following code to Kernel\Output\HTML\DashboardTicketGeneric.pm (code includes the line numbers) :
Code: Select all
(16) use Kernel::System::CustomerCompany;
(36) $Self->{CustomerCompanyObject} = Kernel::System::CustomerCompany->new(%Param);
(365) my %Company = $Self->{CustomerCompanyObject}->CustomerCompanyGet(CustomerID => $Ticket{CustomerID});
$Ticket{CustomerName} = $Company{CustomerCompanyName};
Code: Select all
(112) <td class="W15pc">
<div title="$QData{"CustomerName"}">$QData{"CustomerName","25"}</div>
</td>
OTRS 3.1.10, MySQL, Windows Server 2008
-
- Znuny newbie
- Posts: 16
- Joined: 21 Feb 2013, 09:16
- Znuny Version: 3.2.1
- Real Name: Moed Ijaz
- Company: ExpertFlow
Re: Adding company name to OTRS dashboard
Thank You Very Much .... U help me alot
-
- Znuny newbie
- Posts: 1
- Joined: 11 Dec 2013, 15:09
- Znuny Version: 3.2.10
Re: Adding company name to OTRS dashboard
I dont know perl, but i added this code, otherwise i'm getting error in syslog "error OTRS-CGI-10 Need CustomerID!"
Code: Select all
if ( $Ticket{CustomerID} ) {
my %Company = $Self->{CustomerCompanyObject}->CustomerCompanyGet(CustomerID => $Ticket{CustomerID});
$Ticket{CustomerName} = $Company{CustomerCompanyName};
}