Interface SLAChangeEvent


@PublicApi public interface SLAChangeEvent
An event that causes SLA to recalculate
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<com.atlassian.jira.issue.history.ChangeItemBean>
    One of the changes (multi valued field) of the given field in the event, if the given fieldName equals the name of one of the ChangeItemBean in the event the old and the new value do not equal (don't have the same value and are not both null)
    Collection<com.atlassian.jira.issue.history.ChangeItemBean>
    The changes that were made to the issue with the action that caused the event.
    Optional<com.atlassian.jira.issue.comments.Comment>
    The comment of the originating event or empty.
    com.atlassian.jira.issue.Issue
    The issue that is involved in the originating event.
    com.atlassian.jira.project.Project
    The project the originating event published in.
    The created time of the originating event.
    boolean
    Returns if the originating event is a issue created event.
  • Method Details

    • getComment

      @Nonnull Optional<com.atlassian.jira.issue.comments.Comment> getComment()
      The comment of the originating event or empty.
      Returns:
      the comment of the originating event or empty.
    • getIssue

      @Nonnull com.atlassian.jira.issue.Issue getIssue()
      The issue that is involved in the originating event.
      Returns:
      the issue
    • isIssueCreatedEvent

      boolean isIssueCreatedEvent()
      Returns if the originating event is a issue created event.
      Returns:
      true, if the originating event it an issue created event.
    • getProject

      @Nonnull com.atlassian.jira.project.Project getProject()
      The project the originating event published in.
      Returns:
      the project.
    • getTime

      @Nonnull Date getTime()
      The created time of the originating event.
      Returns:
      the time.
    • getChangeItems

      @Nonnull Collection<com.atlassian.jira.issue.history.ChangeItemBean> getChangeItems()
      The changes that were made to the issue with the action that caused the event.
      Returns:
      the changes
    • getChangeItemForField

      @Nonnull Optional<com.atlassian.jira.issue.history.ChangeItemBean> getChangeItemForField(@Nonnull String fieldName)
      One of the changes (multi valued field) of the given field in the event, if
      1. the given fieldName equals the name of one of the ChangeItemBean in the event
      2. the old and the new value do not equal (don't have the same value and are not both null)
      Parameters:
      fieldName - the name of the field
      Returns:
      the change, which is empty if the field wasn't changed.