Class StatusCategoryMapper
java.lang.Object
com.atlassian.jira.issue.status.category.StatusCategoryMapper
The purpose of this helper class is to make a best guess at semantics for statuses that may not have any.
The data is intended for use when workflows without the full status metadata are created, such as
through the workflow importer, or when upgrading from older versions of JIRA.
The class is not intended to be used for rendering statuses directly.
- Since:
- v6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmapCategoriesToStatuses
(JiraWorkflow workflow) Scan a JIRA workflow, determine what status category each status should belong to.
-
Constructor Details
-
StatusCategoryMapper
-
-
Method Details
-
mapCategoriesToStatuses
Scan a JIRA workflow, determine what status category each status should belong to.Will make a best effort at returning a mapping, even for misconfigured workflows. In cases where workflows are misconfigured, errors will be logged, not thrown.
- Parameters:
workflow
- TheJiraWorkflow
to check the statuses for.- Returns:
- A map of our best guess as to the semantics of each
Status
as used in this workflow.
-