I am developing a version management plugin for Jira and as part of my workflow I would like to trigger a Bamboo build for a version in Jira.
There is a standard feature in Jira to trigger a Bamboo build, when releasing a version as describe here https://support.atlassian.com/jira-software-cloud/docs/run-a-bamboo-build-when-releasing-a-version/.
I have similar situation, but want to call this functionality from the backend of my Jira plugin, not via UI.
How can I programmatically by Java API or REST API trigger a similar Bamboo build?
Any ideas or suggestions?
Thank you in advance