Class CloneIssueCommand.CloneIssueResult

java.lang.Object
com.atlassian.jira.bc.issue.CloneIssueCommand.CloneIssueResult
All Implemented Interfaces:
Serializable
Enclosing class:
CloneIssueCommand

public static final class CloneIssueCommand.CloneIssueResult extends Object implements Serializable
See Also:
  • Constructor Details

    • CloneIssueResult

      public CloneIssueResult(@Nullable String issueKey, @Nonnull ErrorCollection errorCollection, @Nonnull Collection<io.atlassian.fugue.Either<AttachmentError,Attachment>> attachmentCloneResults)
      Parameters:
      issueKey - the issue key
      errorCollection - an error collection representing any errors that occurred during the clone
      attachmentCloneResults - a collection of attachment clone results
    • CloneIssueResult

      public CloneIssueResult(@Nullable String issueKey, @Nonnull Collection<io.atlassian.fugue.Either<AttachmentError,Attachment>> attachmentCloneResults)
      Parameters:
      issueKey - the issue key
      attachmentCloneResults - a collection of attachment clone results
  • Method Details

    • getIssueKey

      public String getIssueKey()
    • getErrorCollection

      public ErrorCollection getErrorCollection()
    • isSuccessful

      public boolean isSuccessful()
    • getAttachmentCloneErrorCount

      public long getAttachmentCloneErrorCount()
      Returns:
      the number of attachments that could not be cloned due to errors
    • getAttachmentCloneCount

      public long getAttachmentCloneCount()
      Returns:
      the total number of attachments that were attempted to be cloned