Use content of ONE dynamic field to generate multiple URLS in ticket zoom

Moderator: crythias

Post Reply
PhyrePhoX
Znuny advanced
Posts: 132
Joined: 05 Dec 2007, 10:56
Znuny Version: 5.0.24 (with ITSM Mo

Use content of ONE dynamic field to generate multiple URLS in ticket zoom

Post by PhyrePhoX »

Hi,

i have several backend systems that i want to reach conveniently with a URL directly in a ticket (zoom). I populate 2 dynamic fields to generate two URLs, but the ID i use for the urls is actually the same. So i want to enter the ID only once, and have two URLs shown on ticket zoom.
I guess this could be solved in several ways:

1. Two fields, but only one content used for urls
Lets say i have a dynamic field called "url1" and it expects a number. In the dynamic field config i add under "show link"
https://url2.com/web/blabla/xyz?customerId=[% Data.url1 | uri %]
This works fine.
If i add a 2nd dynamic field called url2 and under "show link" i say
https://url2.com/?customfield=[% Data.url1 | uri %] (i use url1 here, even though it is in the url2 dynamic field definition)
it does not work. Am i missing something? Is there a way around it? This would be the easiest solution for me.
2. Generic Agent / Event
I could create an event and listen for changes on "url1" dynamic field, and then copy the content of url1 to url2 - but i do not know how to actually do that in the "update ticket attributes", like which syntax would i use.
3. A module or config that allows adding of external URLs based on dynamic field content, not sure if that exists?

Thanks for your input!
OTRS 5.0.24 (with ITSM Modules) and Znuny 6.4.4 in staging
Post Reply