@PublicApi
public interface IssueTypeService
Modifier and Type | Interface and Description |
---|---|
static class |
IssueTypeService.CreateValidationResult |
static class |
IssueTypeService.DeleteValidationResult |
static class |
IssueTypeService.IssueTypeCreateInput |
static class |
IssueTypeService.IssueTypeDeleteInput |
static class |
IssueTypeService.IssueTypeResult |
static class |
IssueTypeService.IssueTypeUpdateInput |
static class |
IssueTypeService.UpdateValidationResult |
Modifier and Type | Method and Description |
---|---|
IssueTypeService.IssueTypeResult |
createIssueType(ApplicationUser user,
IssueTypeService.CreateValidationResult validationResult)
This method will store a new issue type in JIRA DB.
|
void |
deleteIssueType(ApplicationUser user,
IssueTypeService.DeleteValidationResult validationResult)
Removes the issue from JIRA database and triggers
IssueTypeDeletedEvent . |
Iterable<IssueType> |
getAvailableAlternativesForIssueType(ApplicationUser applicationUser,
String id)
Returns a collection of suitable alternative
IssueType s to which issues with the supplied issue type can be moved to. |
com.atlassian.fugue.Option<IssueType> |
getIssueType(ApplicationUser applicationUser,
String id)
Returns an issue type for the given issue type id, if it is visible for the user.
|
Iterable<IssueType> |
getIssueTypes(ApplicationUser applicationUser) |
IssueTypeService.IssueTypeResult |
updateIssueType(ApplicationUser user,
IssueTypeService.UpdateValidationResult validationResult)
This method will store the update issue type value in JIRA database and trigger a new
IssueTypeUpdatedEvent . |
IssueTypeService.CreateValidationResult |
validateCreateIssueType(ApplicationUser user,
IssueTypeService.IssueTypeCreateInput issueTypeCreateInput)
This method validates the parameters for creation of an issue type and execute permission checks.
|
IssueTypeService.DeleteValidationResult |
validateDeleteIssueType(ApplicationUser user,
IssueTypeService.IssueTypeDeleteInput issueTypeDeleteInput)
This method validates if it is possible to remove issue type with given id and executes permission checks.
|
IssueTypeService.UpdateValidationResult |
validateUpdateIssueType(ApplicationUser user,
String issueTypeId,
IssueTypeService.IssueTypeUpdateInput issueTypeUpdateInput)
This method validates the parameters for update of an issue type and execute permission checks.
|
com.atlassian.fugue.Option<IssueType> getIssueType(ApplicationUser applicationUser, String id)
applicationUser
- user which requests access to the issue type.id
- of an issue type to return.Iterable<IssueType> getIssueTypes(ApplicationUser applicationUser)
applicationUser
- user which requests access to issue types.Iterable<IssueType> getAvailableAlternativesForIssueType(ApplicationUser applicationUser, String id)
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.applicationUser
- user which requests access to issue types.id
- of an issue type to find alternative for.IssueTypeService.CreateValidationResult validateCreateIssueType(ApplicationUser user, @Nonnull IssueTypeService.IssueTypeCreateInput issueTypeCreateInput)
IssueTypeService.CreateValidationResult
which can be passed
to createIssueType(ApplicationUser, CreateValidationResult)
.user
- against whom the permission checks will be run.issueTypeCreateInput
- this represents the issue type values.IssueTypeService.CreateValidationResult
.IssueTypeService.IssueTypeResult createIssueType(ApplicationUser user, @Nonnull IssueTypeService.CreateValidationResult validationResult)
IssueTypeCreatedEvent
.user
- against whom the permission checks will be run.validationResult
- validation result returned by validateCreateIssueType(ApplicationUser, com.atlassian.jira.config.IssueTypeService.IssueTypeCreateInput)
.IssueTypeService.UpdateValidationResult validateUpdateIssueType(ApplicationUser user, @Nonnull String issueTypeId, @Nonnull IssueTypeService.IssueTypeUpdateInput issueTypeUpdateInput)
IssueTypeService.UpdateValidationResult
which can be passed to
updateIssueType(ApplicationUser, UpdateValidationResult)
.user
- against whom the permission checks will be run.issueTypeId
- issue type to update.issueTypeUpdateInput
- represents the issue type values.IssueTypeService.UpdateValidationResult
.IssueTypeService.IssueTypeResult updateIssueType(ApplicationUser user, @Nonnull IssueTypeService.UpdateValidationResult validationResult)
IssueTypeUpdatedEvent
.user
- against whom the permission checks will be run.validationResult
- validation result returned by validateUpdateIssueType(ApplicationUser, String, com.atlassian.jira.config.IssueTypeService.IssueTypeUpdateInput)
.IssueTypeService.DeleteValidationResult validateDeleteIssueType(ApplicationUser user, @Nonnull IssueTypeService.IssueTypeDeleteInput issueTypeDeleteInput)
user
- against whom the permission checks will be run.issueTypeDeleteInput
- issue type delete input.IssueTypeService.DeleteValidationResult
.void deleteIssueType(ApplicationUser user, @Nonnull IssueTypeService.DeleteValidationResult validationResult)
IssueTypeDeletedEvent
.
All issues which are associated to the removed issue type are going to be migrated to an alternative issue type.user
- against whom the permission checks will be run.validationResult
- validation result returned by validateDeleteIssueType(ApplicationUser, IssueTypeDeleteInput)
.Copyright © 2002-2015 Atlassian. All Rights Reserved.