How To Add Dynamic Fields to Ticket::Frontend::MenuModule###500-ExternalLink

Moderator: crythias

Post Reply
mdavis211
Znuny newbie
Posts: 2
Joined: 03 Jul 2021, 00:09
Znuny Version: 6.0.35
Real Name: Michael Davis
Company: AlticeUSA

How To Add Dynamic Fields to Ticket::Frontend::MenuModule###500-ExternalLink

Post by mdavis211 »

I have a dynamic field defined (ipaddress) for a ticket that gets auto-populated via a Postmaster filter. I have already configured the system configuration option Ticket::Frontend::MenuModule###500-ExternalLink. For the link, I want to pass the dynamic field ipaddress to the external link's URL, but I'm not sure how to define this attribute in the URL.

I've tried several iterations of:
http://myserver.com/scripts/dosomething.php?string=[%Data.ipaddress%]&searchType=ip, returns:
http://myserver.com/scripts/dosomething ... rchType=ip

When I view the access_log from the remote site, the attribute for [%Data.ipaddress%], in the URL is blank.

When I use the following URL, I see ticket number, so I know the system configuration format is defined correctly:
http://myserver.com/scripts/dosomething.php?string=[%Data.TicketID%]&searchType=ip, returns
http://myserver.com/scripts/dosomething ... rchType=ip

My question is it possible to pass dynamic field data in via Ticket::Frontend::MenuModule###500-ExternalLink and if so, how would the field name be defined?

Thanks in Advance
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: How To Add Dynamic Fields to Ticket::Frontend::MenuModule###500-ExternalLink

Post by root »

Hi Michael,

Use [% Data.DynamicField_ipaddress %] in the URL to have it replace.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
mdavis211
Znuny newbie
Posts: 2
Joined: 03 Jul 2021, 00:09
Znuny Version: 6.0.35
Real Name: Michael Davis
Company: AlticeUSA

Re: How To Add Dynamic Fields to Ticket::Frontend::MenuModule###500-ExternalLink

Post by mdavis211 »

Roy,

Thank alot. That worked. Last question...Is it possible to have multiple ExternalLink entries in the dropdown menu? For example, one for an ip address and another for something else for the agent to choose? Can I add Ticket::Frontend::MenuModule###510-ExternalLink for a new menu item?

Once again, Thanks in Advance

-Mike
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: How To Add Dynamic Fields to Ticket::Frontend::MenuModule###500-ExternalLink

Post by skullz »

Yup possible..

1. you have to duplicate this externallink xml block https://github.com/znuny/Znuny/blob/ebe ... .xml#L5600
to new xml file under /opt/otrs/Kernel/Config/Filex/XML/blablabla.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Config">
NEW XML BLOCK HERE
</otrs_config>
*change number 500 to 501

2. Assign correct permission to the file

3. Rebuild and sync config via otrs.Console.pl
Post Reply