Package com.atlassian.jira.issue.context
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final IssueContext
Global context not associated with any project or any issues types. -
Method Summary
Modifier and TypeMethodDescriptionGets the IssueType for this IssueContext.Gets the ID of the IssueType for this IssueContext.Deprecated.Gets the ID of the Project for this IssueContext.Gets the Project for this IssueContext.
-
Field Details
-
GLOBAL
Global context not associated with any project or any issues types.
-
-
Method Details
-
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
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
Deprecated.Please usegetIssueType()
. Deprecated since v7.0Gets 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
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
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).
-
getIssueType()
.