Class IssueTemplateContext

java.lang.Object
com.atlassian.jira.mail.DefaultTemplateContext
com.atlassian.jira.mail.IssueTemplateContext
All Implemented Interfaces:
TemplateContext

public class IssueTemplateContext extends DefaultTemplateContext
Provides the template with all required objects, including the issue details.
  • Constructor Details

  • Method Details

    • getTemplateParams

      public Map<String,Object> getTemplateParams()
      Description copied from interface: TemplateContext
      Create a map of all template params.
      Specified by:
      getTemplateParams in interface TemplateContext
      Overrides:
      getTemplateParams in class DefaultTemplateContext
      Returns:
      Map all template params
    • getUtilParams

      public Map<String,Object> getUtilParams()
      Provide the template with some utility references
      Returns:
      Map Utils required for templates.
    • getAttachmentParams

      public Map<String,Object> getAttachmentParams()
      Generate the attachment params for the template.
      Returns:
      Map the attachment params for the template.
    • getCommentParams

      public Map<String,Object> getCommentParams()
      Generate the comment params for the template.
      Returns:
      Map the comment params for the template.
    • getCommentTimeLogged

      public String getCommentTimeLogged(I18nHelper i18n)
      This is retrieved when the template is being generated so as it is properly formatted for the recipient.
      Returns:
      String formatted comment time logged string
    • getTimeLogged

      public String getTimeLogged(Worklog worklog, I18nHelper i18n)
      This is retrieved when the template is being generated so as it is properly formatted for the recipient.
      Returns:
      String formatted comment time logged string
    • getEventTypeName

      public String getEventTypeName(I18nHelper i18n)
      This is retrieved when the template is being generated so as it is properly formatted for the recipient.
      Parameters:
      i18n - i18n bean
      Returns:
      String formatted event type name
    • getChangeLogParams

      public Map<String,Object> getChangeLogParams()
      Generate the changelog params for the template.
      Returns:
      Map the changelog params for the template.