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
Customize "Link" functionality
-
- 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
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- 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
Hi,
I am not able to find the place where I should write code. Can u please help me!
Thanks & Regards,
Gaurav
I am not able to find the place where I should write code. Can u please help me!
Thanks & Regards,
Gaurav
-
- 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
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).
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- 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
I tried to edit the code, but it is not successful! Sorry I am new to otrs. Please help me!
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Customize "Link" functionality
Edit Config.pm
find and modify the following in the Customer User Map:
If you don't have the Customer User Map, you'll need to copy from Defaults.pm to Config.pm (All of $Self->{CustomerUser} )
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 ],
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
-
- 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
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.
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.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Customize "Link" functionality
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
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