Add links to fields
It is possible to add links to certain fields in your notification to send users to a desired page.
How to Add Links to Fields
Let’s start by going to our templates:
We can then edit or add a template:
We are going to select the desired field and click on the blue Link button:
We’ll notice that two extra options are now displayed:
Href: This is where we are going to add our URL.
Target Page: This option allows us to choose if the link will be opened in the same window/tab or a new one.
Below, we’ll use the placeholders for Project (${projectUrl}) and Issue (${issueUrl}):
The app has two reserved placeholders to facilitate directing users either to the issue or to the project mentioned in the notification: ${projectUrl} and ${issueUrl}
The resulting notification now has two links that will direct us to the Project page and the Issue page:
Users can either add a fixed URL or the placeholders as the links.
The ${issueUrl} is dynamic and will always present the URL to the corresponding issue key.