Link ticket number in ticket title

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

Moderator: crythias

Forum rules
Dont create your support topics here! No new topics with questions allowed!
Post Reply
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny 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 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
VCSousa
Znuny newbie
Posts: 62
Joined: 05 Feb 2020, 17:45
Znuny Version: OTRS6
Real Name: Ruben Sousa
Company: Zolve - Logistic and Transport, S.A.

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
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
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