Class GlobalIssueContext

java.lang.Object
com.atlassian.jira.issue.context.AbstractJiraContext
com.atlassian.jira.issue.context.GlobalIssueContext
All Implemented Interfaces:
IssueContext, JiraContextNode, Comparable<JiraContextNode>

@PublicApi public class GlobalIssueContext extends AbstractJiraContext
  • Field Details

  • Method Details

    • appendToParamsMap

      public Map<String,Object> appendToParamsMap(Map<String,Object> input)
      Description copied from interface: JiraContextNode
      Copy the supplied parameters and add new ones.
      Parameters:
      input - to copy from
      Returns:
      the copied map
    • getIssueTypeObject

      public IssueType getIssueTypeObject()
      Description copied from interface: IssueContext
      Gets the IssueType for this IssueContext.

      A null return value is used to represent that this context applies to all IssueTypes.

      Returns:
      The IssueType for this IssueContext (can be null).
    • getIssueType

      public IssueType getIssueType()
      Description copied from interface: IssueContext
      Gets the IssueType for this IssueContext.

      A null return value is used to represent that this context applies to all IssueTypes.

      Returns:
      The IssueType for this IssueContext (can be null).
    • getIssueTypeId

      public String getIssueTypeId()
      Description copied from interface: IssueContext
      Gets the ID of the IssueType for this IssueContext.

      A null return value is used to represent that this context applies to all IssueTypes.

      Returns:
      The ID of the IssueType for this IssueContext (can be null).
    • getProjectObject

      public Project getProjectObject()
      Description copied from interface: IssueContext
      Gets the Project for this IssueContext.

      A null return value is used to represent that this context applies to all Projects.

      Returns:
      The Project for this IssueContext (can be null).
    • getProjectId

      public Long getProjectId()
      Description copied from interface: IssueContext
      Gets the ID of the Project for this IssueContext.

      A null return value is used to represent that this context applies to all Projects.

      Returns:
      The ID of the Project for this IssueContext (can be null).
    • isInContext

      public boolean isInContext(IssueContext issueContext)
      Specified by:
      isInContext in interface JiraContextNode
      Overrides:
      isInContext in class AbstractJiraContext
    • getParent

      public JiraContextNode getParent()
      Returns:
      This context's parent, or null if it is the root context.
    • hasParentContext

      public boolean hasParentContext()
      Returns:
      Whether or not this context has a parent context.
    • getInstance

      public static JiraContextNode getInstance()
    • toString

      public String toString()
      Overrides:
      toString in class AbstractJiraContext