Skip to content

Commit

Permalink
Change "event names" for automation events
Browse files Browse the repository at this point in the history
since we cannot use "fieldId" at Jira datacenter (it is available in the Cloud version...)
  • Loading branch information
marko-bekhta committed Dec 4, 2024
1 parent 1f33070 commit 1405524
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public Collection<Runnable> 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<Runnable> 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<Runnable> handlers(ReportingConfig reportingConfig, JiraActionEvent event,
HandlerProjectContext context) {
Expand All @@ -62,7 +62,7 @@ public static Optional<JiraActionEventType> 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);
}
}
Expand Down

0 comments on commit 1405524

Please sign in to comment.