diff --git a/src/main/java/org/hibernate/infra/replicate/jira/service/jira/model/hook/JiraActionEventType.java b/src/main/java/org/hibernate/infra/replicate/jira/service/jira/model/hook/JiraActionEventType.java index 8c025b3..ecfba58 100644 --- a/src/main/java/org/hibernate/infra/replicate/jira/service/jira/model/hook/JiraActionEventType.java +++ b/src/main/java/org/hibernate/infra/replicate/jira/service/jira/model/hook/JiraActionEventType.java @@ -32,14 +32,14 @@ public Collection handlers(ReportingConfig reportingConfig, JiraAction return List.of(new JiraTransitionActionEventHandler(reportingConfig, context, event)); } }, - FIX_VERSION_CHANGED("jira:issue_update_fixversions") { + FIX_VERSION_CHANGED("jira:issue_update_fixversion") { @Override public Collection handlers(ReportingConfig reportingConfig, JiraActionEvent event, HandlerProjectContext context) { return List.of(new JiraFixVersionActionEventHandler(reportingConfig, context, event)); } }, - AFFECTS_VERSION_CHANGED("jira:issue_update_versions") { + AFFECTS_VERSION_CHANGED("jira:issue_update_version") { @Override public Collection handlers(ReportingConfig reportingConfig, JiraActionEvent event, HandlerProjectContext context) { @@ -62,7 +62,7 @@ public static Optional of(String webhookEvent) { return Optional.empty(); } for (JiraActionEventType value : values()) { - if (value.name.equals(webhookEvent.toLowerCase(Locale.ROOT))) { + if (value.name.equals(webhookEvent.toLowerCase(Locale.ROOT).replace(" ", ""))) { return Optional.of(value); } }