We have an external system to which we want to provide direct links from within support requests we create in JSM.
We can navigate to different objects within this system based on url fragments which we can add to a custom field with a default url fragment linking to the system itself, and a variable which we create and add to the custom field using automations.
This setup works for almost all the objects we have in this system, except for users. The user object we use on this system is the email address, which allows us to navigate to a user through an url which looks like:
https://system.io/user@domain.com
Configuring a single line free text field using the wiki style renderer, and populating it with a value through an automation will create a mailto: link rather than a url
In the automation, we set the field value to: [{{reporter.emailAddress}}|https://system.io/{{reporter.emailAddress}}]
If we try the same setup but with a url field instead of a free text field, it also results in a mailto: link rather than a url. The field value would be slightly different set in the automation:
https://system.io/{{reporter.emailAddress}}
Is there some way we can force this as a url rather than a mailto: link?
Can you show us sample output for both.
Using the single text field, the output (rather field value) is:
[user@domain.com|https://system.io/user@domain.com]
The [ | ] will be displayed in the output, the link itself will resolve at mailto:user@domain.com instead of https://system.io/user@domain.com
When using the url field, the outpu/field value is:
https://system.io/user@domain.com
We observe the same behaviour in the url field as we see with the free text field, it will resolve at mailto:user@domain.com instead of https://system.io/user@domain.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to use this - https://system.io/{{#urlEncode}}{{reporter.emailAddress}}{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.