I"m setting up a simple WF in JIRA:
NEW <-> IN PROGRESS <-> IN REVIEW <-> TBV -> CLOSED
There is also a loopback from TBV to IN PROGRESS.
I've set up the right WF triggers so the Bitbucket (BB) commits and PR's transition the JIRA issues, but I've having one problem. My transition to IN PROGRESS is "common" (all states that transition to IN PROGRESS use the same transition). That transition has triggers enabled so that it transitions for BB branch-create and commits (either one). The idea is from NEW to IN PROGRESS, it's usually a branch create that should transition. But, from IN REVIEW or TBV, another commit resets the issue back to IN PROGRESS.
Another trigger for a PR Merge will transition from IN REVIEW to TBV.
The problem is that in BB, the PR Merge generates another commit, so JIRA sees 2 triggers, and follows both transitions:
Is there anyway to control this without setting up separate transitions to IN PROGRESS with different triggers? I really like reusing transitions in a WF as much as possible.