Add Issue Link Information to Your Template

In case you want to render issue link information in your email, you must edit your email templates. Rendering issue links requires a complex processing logic. The key is $!issue.linkCollection that returns a LinkCollection object if there are linked issues ortherwise null.

Below are example template code fragments that will render issue link information in HTML or TEXT emails.

When selecting "Linked Issues" in the Field Picker dropdown, you will get instructions on how to easily include issue link information in the template.

In case you want a customized display (e.g. include more attributes of the linked issues), then you can start to add these template fragments directly into your templates and customize them according to your needs.

Insert issue links

Add as $!issue.linkCollection. It returns an LinkCollection object which provides methods to explore linked issues, link types, etc.

The LinkCollection contains the linked issues as the email sender sees them. As the sender may not be privileged to view all linked issues in JIRA, the collection will not render issues hidden to the sender. 

To render as HTML add: #parse('templates/emailissue/email/html/issue-links.vm') 
To render as Text add: #parse('templates/emailissue/email/text/issue-links.vm')

To have full control over the rendering of linked issues, insert the below code fragments into your template instead of parsing the rendering methods as above.