Class DefaultIssueLinkRenderer

java.lang.Object
com.atlassian.jira.plugin.issuelink.AbstractIssueLinkRenderer
com.atlassian.jira.plugin.viewissue.issuelink.DefaultIssueLinkRenderer
All Implemented Interfaces:
IssueLinkRenderer
Direct Known Subclasses:
ConfluenceIssueLinkRenderer, RemoteJiraIssueLinkRenderer

public class DefaultIssueLinkRenderer extends AbstractIssueLinkRenderer
Implements the default issue link renderer.
Since:
v5.0
  • Field Details

  • Constructor Details

  • Method Details

    • getInitialContext

      public Map<String,Object> getInitialContext(RemoteIssueLink remoteIssueLink, Map<String,Object> context)
      Description copied from interface: IssueLinkRenderer
      Returns the context used by the template to render the initial HTML. Implementers of this method should not make remote calls, use IssueLinkRenderer.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>

      Parameters:
      remoteIssueLink - remote issue link
      context - the contextual information that can be used during rendering.
      Returns:
      context used to render the initial HTML.