I have Jira, Bitbucket Server, and Bamboo.
When I make a release, I would like automatically to stamp the release number as the Fix Version for all Jira issues detected in the release.
I found REST API endpoints for Jira that seems to be appropriate:
POST: /rest/api/2/version (to create a version)
PUT: /rest/api/2/issue/ISSUE-1 (to update the issue with new fixVersion)
But I can't find any REST API that gets a list of Jira issues related to a release.
I am flexible; we can work with the issues related to a given commit when Bamboo does the build, or we can look at the issues included when Bamboo makes a new release (i.e. since the last release). Either way will work for me.
What's the API to use?