@PublicApi
public interface IssueTypeManager
IssueType
s.Modifier and Type | Method and Description |
---|---|
IssueType |
createIssueType(String name,
String description,
Long avatarId)
Create a new (non-subtask) issue type.
|
IssueType |
createIssueType(String name,
String description,
String iconUrl)
Deprecated.
Use
createIssueType(String, String, Long) instead. Since v6.3. |
IssueType |
createSubTaskIssueType(String name,
String description,
Long avatarId)
Create a new subtask issue type.
|
IssueType |
createSubTaskIssueType(String name,
String description,
String iconUrl)
Create a new subtask issue type.
|
void |
editIssueType(IssueType issueType,
String name,
String description,
String iconUrl)
Deprecated.
Use
updateIssueType(com.atlassian.jira.issue.issuetype.IssueType, String, String, Long) instead. Since v6.3. |
Collection<IssueType> |
getAvailableIssueTypes(IssueType issueType)
Returns a collection of suitable alternative
IssueType s to which issues with the supplied issue type can be moved to. |
IssueType |
getIssueType(String id)
Returns the
IssueType for the specified id. |
Collection<IssueType> |
getIssueTypes()
Returns all issue types regular and subtask issue types.
|
boolean |
hasAssociatedIssues(IssueType issueType)
Checks if there are any issues associated with this issue type.
|
void |
removeIssueType(String id,
String newIssueTypeId)
Removes an issue type.
|
void |
updateIssueType(IssueType issueType,
String name,
String description,
Long avatarId)
Edits an existing issue type.
|
@Deprecated IssueType createIssueType(String name, String description, String iconUrl)
createIssueType(String, String, Long)
instead. Since v6.3.name
- name of the issue type. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- description for the issue type.iconUrl
- icon URL for the issue type. Cannot be null or blank.IssueType
IssueType createIssueType(String name, String description, Long avatarId)
After successful creation of the new issue type, this method publishes an instance of IssueTypeCreatedEvent
.
name
- name of the issue type. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- description for the issue type.avatarId
- avatarId for the issue type. Cannot by null.IssueType
IssueType createSubTaskIssueType(String name, String description, String iconUrl)
name
- name of the issue type. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- description for the issue type.iconUrl
- icon URL for the issue type. Cannot be null or blank.IssueType
IssueType createSubTaskIssueType(String name, String description, Long avatarId)
name
- name of the issue type. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- description for the issue type.avatarId
- avatarId for the issue type. Cannot by null.IssueType
@Deprecated void editIssueType(IssueType issueType, String name, String description, String iconUrl)
updateIssueType(com.atlassian.jira.issue.issuetype.IssueType, String, String, Long)
instead. Since v6.3.issueType
- existing issue typename
- new name. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- new description.iconUrl
- icon URL for the issue type. Cannot be null or blank.void updateIssueType(IssueType issueType, String name, String description, Long avatarId)
IssueTypeUpdatedEvent
.issueType
- existing issue typename
- new name. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- new description.avatarId
- avatar id the issue type. Cannot be null or blank.Collection<IssueType> getIssueTypes()
IssueType
svoid removeIssueType(String id, String newIssueTypeId)
IssueTypeDeletedEvent
.id
- id of the issue type to removenewIssueTypeId
- the id of the new issue type for all issues which are of the issue type which we are about to remove. Can be null.IssueType getIssueType(String id)
IssueType
for the specified id.id
- issue type id.IssueType
Collection<IssueType> getAvailableIssueTypes(IssueType issueType)
IssueType
s to which issues with the supplied issue type can be moved to.
The suitable alternative IssueType
s will have to use the same workflow, the same field configuration and the same screen scheme.issueType
- IssueType
sboolean hasAssociatedIssues(IssueType issueType)
issueType
- for which issues are searched.Copyright © 2002-2015 Atlassian. All Rights Reserved.