@PublicSpi
public interface IssueLinkRenderer
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getFinalContext(RemoteIssueLink remoteIssueLink,
Map<String,Object> context)
Returns the context used to render the final HTML.
|
Map<String,Object> |
getInitialContext(RemoteIssueLink remoteIssueLink,
Map<String,Object> context)
Returns the context used by the template to render the initial HTML.
|
boolean |
requiresAsyncLoading(RemoteIssueLink remoteIssueLink)
Returns true if an AJAX call is required to retrieve the final HTML.
|
boolean |
shouldDisplay(RemoteIssueLink remoteIssueLink)
Returns true if the remote issue link should be displayed.
|
Map<String,Object> getInitialContext(RemoteIssueLink remoteIssueLink, Map<String,Object> context)
getFinalContext(RemoteIssueLink, Map)
for that purpose.
The resulting HTML will be injected as follows:
<dl class="links-list">
<dt>Relationship Text</dt>
<!-- ... Other Issue Links ... -->
<dd id="uniqueHtmlElementId" class="remote-link">
<div class="link-content">
<!-- ISSUE LINK RENDERER CONTENT HERE -->
</div>
<p>
<div class="delete-link" id="delete_uniqueHtmlElementId">
<a class="icon icon-delete" title="Delete Link" id="delete-link_uniqueHtmlElementId" href="delete_remote_issue_link_url"><span>Delete Link</span></a>
</div>
</dd>
<!-- ... Other Issue Links ... -->
</dl>
remoteIssueLink
- remote issue linkcontext
- the contextual information that can be used during
rendering.Map<String,Object> getFinalContext(RemoteIssueLink remoteIssueLink, Map<String,Object> context)
requiresAsyncLoading(RemoteIssueLink)
returns true.
The resulting HTML will be injected as follows:
<dl class="links-list">
<dt>Relationship Text</dt>
<!-- ... Other Issue Links ... -->
<dd id="uniqueHtmlElementId" class="remote-link">
<div class="link-content">
<!-- ISSUE LINK RENDERER CONTENT HERE -->
</div>
<p>
<div class="delete-link" id="delete_uniqueHtmlElementId">
<a class="icon icon-delete" title="Delete Link" id="delete-link_uniqueHtmlElementId" href="delete_remote_issue_link_url"><span>Delete Link</span></a>
</div>
</dd>
<!-- ... Other Issue Links ... -->
</dl>
remoteIssueLink
- remote issue linkcontext
- the contextual information that can be used during rendering.boolean requiresAsyncLoading(RemoteIssueLink remoteIssueLink)
getFinalContext(com.atlassian.jira.issue.link.RemoteIssueLink, java.util.Map)
will be
called to retrieve the final HTML for the issue link.remoteIssueLink
- remote issue linkboolean shouldDisplay(RemoteIssueLink remoteIssueLink)
remoteIssueLink
- remote issue linkCopyright © 2002-2019 Atlassian. All Rights Reserved.