Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-40597

Issue events fired from a workflow transition should happen after the transaction is committed

XMLWordPrintable

      The problem is that presently the issue event is actually fired from a Workflow post function.

      See also discussion in JRA-31733

      Notes

      For apps observing this issue, an available alternative is to use the OnCommitIssueEventBundle (https://docs.atlassian.com/software/jira/docs/api/latest/com/atlassian/jira/event/issue/commit/OnCommitIssueEventBundle.html) instead of the onCommitIssueEvent.

      Solution

      Fire event post functions in Workflows creates 2 events. The first one, IssueEvent, is fired during the execution of post function. The second, IssueChangedEvent, is fired after the transaction is commited. Listeners need to receive IssueChangedEvent or OnCommitIssueEventBundle events after successful commit.

              Unassigned Unassigned
              mlassau Mark Lassau (Inactive)
              Votes:
              98 Vote for this issue
              Watchers:
              64 Start watching this issue

                Created:
                Updated:
                Resolved: