Is there a way to select the substring of an object in the link-template?

Infos:

  • Used Zammad version: 3.2.x
  • Used Zammad installation source: apt package
  • Operating system: Ubuntu 18.04 LTS
  • Browser + version: n/a

I’m wondering if there is a way to select a substring in the LINK-TEMPLATE field of an object.

For example, we use production numbers for contracts, something like:

[date][iso][contract_id]

When we edit a contract, however, the URL looks more like:

https://example.com/contract/{contract_id}

Production uses the full “production number” format, and to them the contract ID is more or less meaningless. However, I’d like to link the production number to the actual contract in our systems by extracting the contract ID via a substring. Is this possible?

Something like this, assuming a 5 digit contract ID:

https://example.com/contract/#{ticket.production_number[:5]}

As far as I’m aware this is technically not possible and not part of Zammads functionality.

Thanks, although having done this in a number of systems I know it is technically possible. I understand that Zammad doesn’t offer this functionality though, since it would make what should be a simple variable much more complex. Still, it would offer some interesting and useful flexibility in terms of URL generation in custom fields.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.