public class IssueTypeImportHelper extends Object
Constructor and Description |
---|
IssueTypeImportHelper(ConstantsManager constantsManager,
ProjectManager projectManager,
IssueTypeSchemeManager issueTypeSchemeManager) |
Modifier and Type | Method and Description |
---|---|
IssueType |
getIssueTypeForName(String name)
Returns the IssueType, in the current system, with the given name.
|
boolean |
isIssueTypeValidForProject(String projectKey,
String newIssueTypeId)
Checks the projects issue type scheme to determine if the issue type identified by newIssueTypeId is contained
in the projects scheme.
|
boolean |
isMappingValid(IssueType newIssueType,
String projectKey,
boolean oldIssueTypeIsSubTask)
Checks to see that the issue type is valid for the provided project key and that its subtask-ness matches the
old issue type.
|
public IssueTypeImportHelper(ConstantsManager constantsManager, ProjectManager projectManager, IssueTypeSchemeManager issueTypeSchemeManager)
public IssueType getIssueTypeForName(String name)
name
- name of the IssueType.public boolean isMappingValid(IssueType newIssueType, String projectKey, boolean oldIssueTypeIsSubTask)
newIssueType
- the issueType to be inspected, should not be nullprojectKey
- the project key to see if the issue type is relevant for that projectoldIssueTypeIsSubTask
- true if the old issue type was a subtask issue type, false otherwisepublic boolean isIssueTypeValidForProject(String projectKey, String newIssueTypeId)
projectKey
- identifies the projectnewIssueTypeId
- identifies the issue type to checkCopyright © 2002-2019 Atlassian. All Rights Reserved.