Is it possible to alter a global variable via a plugin / api call?

We want to automaticaly update a certain global variable in Bamboo. Is this possible by calling the Bamboo API? If not is it possible to do this in a plugin?

1 answer

1 accepted

There is no REST API call for this as far as I know.

A plugin can probably do it. There's this class : but not sure how it's intended to be used. I would imagine you probably want to alter a global variable during a build (as part of a Task in a Job? If so there might be permissions issue since a Task is usable by any usable and altering global variables affects all users, so it might be limited to system admin permissions.

Hopefully one of the Atlassian folks can chime in with a better answer...

Update : The Atlassian folks have added this capability as of Bamboo 4.4, yet unreleased, "Allow for creation, deletion and modification of global variables via the Bamboo REST API" :

Hi, do you know if the change will cover plan variables as well, or just global variables?

How to use this rest api call?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,324 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you