First, we are creating a new branch from JIRA in bitbucket and leaving the JIRA key in tact. As an example, a new branch might be UNITCLASS-5-code-cleanup.
Then, we are fixing the issue, creating a pull request, and merging into the main branch.
Then, Bamboo builds it. However, it does not pick up the affected JIRA issues under the build or release.
So we have this commit message which is detected as a new change for the build:
Merged in UNITCLASS-5-code-cleanup (pull request #9)
However, there are no new JIRA issues reported. It does see a JIRA issue linked if we explicitly add UNITCLASS-5 for example to the commit, but not if the commit has the full branch name, including the JIRA key.
Why is this not showing up?