From d52a8918585db2e57eac8778bfcee366bc40dc90 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 26 Mar 2020 16:34:02 -0700 Subject: [PATCH] jira: Fix handling of sprint_started events. Now that we inspect more attributes of events in determining subjects, we need to filter events like sprint_started before fetching the subject. --- zerver/webhooks/jira/view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/webhooks/jira/view.py b/zerver/webhooks/jira/view.py index 0cc2952e91..d05211cd57 100644 --- a/zerver/webhooks/jira/view.py +++ b/zerver/webhooks/jira/view.py @@ -316,11 +316,11 @@ def api_jira_webhook(request: HttpRequest, user_profile: UserProfile, payload: Dict[str, Any]=REQ(argument_type='body')) -> HttpResponse: event = get_event_type(payload) - subject = get_issue_subject(payload) - if event in IGNORED_EVENTS: return json_success() + subject = get_issue_subject(payload) + content_func = get_event_handler(event) if content_func is None: