com.atlassian.jira.issue.status.category
Class StatusCategoryMapper
java.lang.Object
com.atlassian.jira.issue.status.category.StatusCategoryMapper
public class StatusCategoryMapper
- extends Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatusCategoryMapper
public StatusCategoryMapper(StatusCategoryManager statusCategoryManager)
mapCategoriesToStatuses
public Map<String,StatusCategory> mapCategoriesToStatuses(JiraWorkflow workflow)
- 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
- The JiraWorkflow
to check the statuses for.
- Returns:
- A map of our best guess as to the semantics of each
Status
as used in this workflow.
Copyright © 2002-2014 Atlassian. All Rights Reserved.