Interface ArchivedIssueService
- All Known Implementing Classes:
DefaultArchivedIssueService
@ExperimentalApi
public interface ArchivedIssueService
This service can be used for archiving and restoring individual issues.
- Since:
- 8.1
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A simple object that holds the information about an issue archive/restore operation.static class
A simple object that holds the information about validating an archive/restore issue operation. -
Method Summary
Modifier and TypeMethodDescriptionarchiveIssue
(ArchivedIssueService.ValidationResult validation) Mark the issue as archived and perform operation of archiving including all dependencies.restoreIssue
(ArchivedIssueService.ValidationResult validation) Mark the issue as not archived and perform operation of restoring including all dependencies.validateArchiveIssue
(ApplicationUser user, String issueKey, boolean notifyUsers) Check if given issue can be archived by given user.validateRestoreIssue
(ApplicationUser user, String issueKey, boolean notifyUsers) Check if given issue can be restored by given user.
-
Method Details
-
archiveIssue
Mark the issue as archived and perform operation of archiving including all dependencies. This method will also triggerIssuesArchivedEvent
.- Parameters:
validation
- a request previously validated byvalidateArchiveIssue(ApplicationUser, String, boolean)
.- Returns:
- the result of the operation.
-
restoreIssue
Mark the issue as not archived and perform operation of restoring including all dependencies. This method will also triggerIssuesRestoredEvent
.- Parameters:
validation
- a request previously validated byvalidateRestoreIssue(ApplicationUser, String, boolean)
.- Returns:
- the result of the operation.
-
validateArchiveIssue
ArchivedIssueService.ValidationResult validateArchiveIssue(ApplicationUser user, String issueKey, boolean notifyUsers) Check if given issue can be archived by given user.- Parameters:
user
-issueKey
-notifyUsers
-- Returns:
- the validation result.
-
validateRestoreIssue
ArchivedIssueService.ValidationResult validateRestoreIssue(ApplicationUser user, String issueKey, boolean notifyUsers) Check if given issue can be restored by given user.- Parameters:
user
-issueKey
-notifyUsers
-- Returns:
- the validation result.
-