Link ticket number in ticket title

Dont create your support topics here! No new topics with questions allowed!

Moderator: crythias

Post Reply
crythias
Moderator
Posts: 10122
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Link ticket number in ticket title

Post by crythias »

https://github.com/OTRS/otrs/blob/1f692 ... oom.tt#L68

Code: Select all

            [% Data.Hook %][% Config('Ticket::HookDivider') %][% Data.TicketNumber %] — [% Data.Title | html %]
change "yourdomain" in the following to

Code: Select all

            [% Data.Hook %][% Config('Ticket::HookDivider') %]<a href="https://yourdomain/otrs/index.pl?Action=AgentTicketZoom;TicketNumber=[% Data.TicketNumber %]">[% Data.TicketNumber %]</a> &mdash; [% Data.Title | html %]
So now you can scrape it to paste it in chat, teams, email ...
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
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

VCSousa
OTRS newbie
Posts: 17
Joined: 05 Feb 2020, 17:45
OTRS Version?: OTRS6
Real Name: Ruben Sousa
Company: Greenyard

Re: Link ticket number in ticket title

Post by VCSousa »

Hi,

Thanks by this "tweak". It's very usefull.

Just a note, if you have your otrs in HTTP and not HTTPS, you have to change it too.

skullz
OTRS wizard
Posts: 325
Joined: 24 Feb 2012, 03:58
OTRS Version?: OTRS 6
Real Name: Skullz
Contact:

Re: Link ticket number in ticket title

Post by skullz »

Simple and great tutorial..
we also can query the base url from configuration

Code: Select all

[% Data.Hook %][% Config('Ticket::HookDivider') %]<a href="[% Config('HttpType') %]://[% Config('FQDN') %]/[% Config('ScriptAlias') %]index.pl?Action=AgentTicketZoom;TicketNumber=[% Data.TicketNumber %]">[% Data.TicketNumber %]</a> &mdash; [% Data.Title | html %]
Last edited by skullz on 19 Aug 2020, 16:28, edited 1 time in total.

Post Reply