Interface SLAChangeEvent
@PublicApi
public interface SLAChangeEvent
An event that causes SLA to recalculate
-
Method Summary
Modifier and TypeMethodDescriptionOptional<com.atlassian.jira.issue.history.ChangeItemBean>
getChangeItemForField
(String fieldName) One of the changes (multi valued field) of the given field in the event, if the givenfieldName
equals the name of one of theChangeItemBean
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
getIssue()
The issue that is involved in the originating event.com.atlassian.jira.project.Project
The project the originating event published in.getTime()
The created time of the originating event.boolean
Returns if the originating event is a issue created event.
-
Method Details
-
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
The created time of the originating event.- Returns:
- the time.
-
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- the given
fieldName
equals the name of one of theChangeItemBean
in the event - 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.
- the given
-