Interface IssueContext

All Known Subinterfaces:
Issue, JiraContextNode, MutableIssue
All Known Implementing Classes:
AbstractIssue, AbstractJiraContext, DocumentIssueImpl, GenericIssueWrapper, GenericMutableIssueWrapper, GlobalIssueContext, IssueContextImpl, IssueImpl, MockIssue, ProjectContext, RenderParameterHoldingIssueWrapper, TemplateIssue

@PublicApi public interface IssueContext
A context (scope) for an issue or custom field. For example, global custom fields have an IssueContext whose project and issue type are null.
  • Field Details

    • GLOBAL

      static final IssueContext GLOBAL
      Global context not associated with any project or any issues types.
  • Method Details

    • getProjectObject

      @Nullable Project getProjectObject()
      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

      @Nullable Long getProjectId()
      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).
    • getIssueTypeObject

      @Nullable @Deprecated IssueType getIssueTypeObject()
      Deprecated.
      Please use getIssueType(). Deprecated since v7.0
      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

      @Nullable IssueType getIssueType()
      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

      @Nullable String getIssueTypeId()
      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).