I'm implementing a triage process for the team where a bug will trigger a slack notification only if the bug is added to the current sprint. I have the webhook set up to only fire on issue update with a simple JQL of "project = X AND Team = Y AND Sprint in openSprints()"
If the sprint has been added to the issue before the transition is initiated everything works as expected. In an effort to optimize, I added the Sprint field to the existing Triage screen that triggers when the transition is initiated. If Sprint is added via the transition screen then the webhook does not trigger.
I've checked the usual suspects. The webhook is the last thing to happen in the list of postfunctions after the data has been entered into the database and re-indexed. The JQL is valid since it works when the data is pre-populated. It appears that data entered via a transition screen is not being evaluated correctly as part of the transition.
We have the workaround of populating the sprint field before initiating the transition but this seems like a bug.
Thoughts?