Repository: getsentry/sentry

Issue:
Jira integration support sprint field.
As the title.


Discussion:
+1 to this. According to this a few fields are broken (?):
https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L86
@saifelse was on a roll regarding Jira so shamelessly pinging him in case he is interested in a PR 🙂 
This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it `Status: Accepted`, I will leave it alone ... forever!

----

"A weed is but an unloved flower." ― _Ella Wheeler Wilcox_ 🥀

Resolving patch:
diff --git a/src/sentry/tasks/post_process.py b/src/sentry/tasks/post_process.py
--- a/src/sentry/tasks/post_process.py
+++ b/src/sentry/tasks/post_process.py
@@ -6,7 +6,9 @@
 import random
 
 from sentry import features, options
+from sentry.app import locks
 from sentry.utils.cache import cache
+from sentry.utils.locking import UnableToAcquireLock
 from sentry.exceptions import PluginError
 from sentry.signals import event_processed, issue_unignored
 from sentry.tasks.base import instrumented_task
@@ -274,22 +276,30 @@ def post_process_group(
                 ):
                     safe_execute(callback, event, futures)
 
-            has_commit_key = "workflow-owners-ingestion:org-{}-has-commits".format(
-                event.project.organization_id
-            )
-
             try:
-                org_has_commit = cache.get(has_commit_key)
-                if org_has_commit is None:
-                    org_has_commit = Commit.objects.filter(
-                        organization_id=event.project.organization_id
-                    ).exists()
-                    cache.set(has_commit_key, org_has_commit, 3600)
-
-                if org_has_commit and features.has(
-                    "projects:workflow-owners-ingestion", event.project,
-                ):
-                    process_suspect_commits(event=event)
+                lock = locks.get(
+                    "workflow-owners-ingestion:org-{}-has-group-lock".format(event.group_id),
+                    duration=10,
+                )
+                try:
+                    with lock.acquire():
+                        has_commit_key = "workflow-owners-ingestion:org-{}-has-commits".format(
+                            event.project.organization_id
+                        )
+
+                        org_has_commit = cache.get(has_commit_key)
+                        if org_has_commit is None:
+                            org_has_commit = Commit.objects.filter(
+                                organization_id=event.project.organization_id
+                            ).exists()
+                            cache.set(has_commit_key, org_has_commit, 3600)
+
+                        if org_has_commit and features.has(
+                            "projects:workflow-owners-ingestion", event.project,
+                        ):
+                            process_suspect_commits(event=event)
+                except UnableToAcquireLock:
+                    pass
             except Exception:
                 logger.exception("Failed to process suspect commits")
 


Test patch: