Customize "Link" functionality

English! place to talk about development, programming and coding
Post Reply
GMunjal
Znuny advanced
Posts: 108
Joined: 23 Oct 2013, 09:17
Znuny Version: 3.3.0 beta 2
Real Name: Gaurav Munjal
Company: Nagarro

Customize "Link" functionality

Post by GMunjal »

Hi,

I want to customize 'Link' functionality presented on AgentTicketZoom page. I want to link tickets of the same customers only(not users). Is there any way to do this? Where should I add check for this?

Thanks & Regards,
GMunjal
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Customize "Link" functionality

Post by reneeb »

You should edit the sub ObjectSearch in Kernel/System/LinkObject/Ticket.pm
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
GMunjal
Znuny advanced
Posts: 108
Joined: 23 Oct 2013, 09:17
Znuny Version: 3.3.0 beta 2
Real Name: Gaurav Munjal
Company: Nagarro

Re: Customize "Link" functionality

Post by GMunjal »

Hi,

I am not able to find the place where I should write code. Can u please help me!

Thanks & Regards,
Gaurav
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Customize "Link" functionality

Post by reneeb »

https://github.com/OTRS/otrs/blob/rel-3 ... et.pm#L273

The ticket search has to return those tickets that have the user CC'ed (see http://otrs.perl-services.de/docs/otrs/ ... earch.html for the options you can use in the TicketSearch).
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
GMunjal
Znuny advanced
Posts: 108
Joined: 23 Oct 2013, 09:17
Znuny Version: 3.3.0 beta 2
Real Name: Gaurav Munjal
Company: Nagarro

Re: Customize "Link" functionality

Post by GMunjal »

I tried to edit the code, but it is not successful! Sorry I am new to otrs. Please help me!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customize "Link" functionality

Post by crythias »

Edit Config.pm
find and modify the following in the Customer User Map:

Code: Select all

             [ 'UserLogin',      'Username',   'login',      1, 1, 'var', '$Env{"CGIHandle"}?Action=AgentTicketSearch;Subaction=Search;CustomerUserLogin=$Data{"UserLogin"}', 0 ],
If you don't have the Customer User Map, you'll need to copy from Defaults.pm to Config.pm (All of $Self->{CustomerUser} )
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
GMunjal
Znuny advanced
Posts: 108
Joined: 23 Oct 2013, 09:17
Znuny Version: 3.3.0 beta 2
Real Name: Gaurav Munjal
Company: Nagarro

Re: Customize "Link" functionality

Post by GMunjal »

My Problem is:
For a particular ticket type only tickets from the same customer can be linked.

I tried to do a lot of things but not succeeded. Please tell me the way to do so.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customize "Link" functionality

Post by crythias »

All linking must be done manually. Though you can search for related tickets, select them, then bulk link if you want. What I proposed was - click the username and see all tickets appropriate to that user.
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
Post Reply