Hiya All,
I am new to Scriptrunner and am looking for a way to start a repository specific bamboo build under certain conditions (i.e. for repository 'test' when pull request is created to 'production' start the bamboo 'sonar' plan on the auto-merged result) but have been struggling to find the information required.
I can get the 'pull request created' action working, and can start Bamboo builds via the REST API (rest/api/latest/queue/<plan_key>) if i hardcode a plan_key in there but i have no idea how to get plan_key dynamically...
Anyone got any ideas?