Class MinimalChangeHistorySerializer
java.lang.Object
com.atlassian.jira.plugins.webhooks.serializer.issue.MinimalChangeHistorySerializer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA simplified version of ChangeHistoryBean that does not serialize data we already have in the issue event payload -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(IssueEvent issueEvent) Try to find the ChangeHistoryBean corresponding to this IssueEvent.
-
Constructor Details
-
MinimalChangeHistorySerializer
-
-
Method Details
-
build
public Optional<MinimalChangeHistorySerializer.MinimalChangeHistoryBean> build(IssueEvent issueEvent) Try to find the ChangeHistoryBean corresponding to this IssueEvent. Our search strategy is: 1. If the IssueEvent had a changelog with it, then we try to match based on changelog id 2. Then we try to take the most recent changelog by the user who triggered the event 3. Final fall back is to just use the most recent changelog- Parameters:
issueEvent- the event whose change history bean you want to find- Returns:
- the MinimalChangeHistoryBean corresponding to this IssueEvent
-