-
assigned issue to
- marked as enhancement
- changed status to open
modify a plan variable?
I tried your plugin and was optimistic that I would be able to clone a plan (via standard rest call) and use your plugin to modify an existing variable, however, it does not seem to address plan variables?
Comments (3)
-
repo owner -
repo owner You can now use a POST to update the value of an existing plan variable. With curl it's like:
$ curl -d newvalue -H "Content-Type:text/plain" 'http://host:port/bamboo/rest/modplan/1.0/TESTPROJ-PLAN1/variables/foo.newvar?os_authType=basic&os_username=username&os_password=password'
This will set the value of "foo.newvar" to "newvalue".
Plan variables can also get read with a get, e.g.:
$ wget http://host:port/bamboo/rest/modplan/1.0/TESTPROJ-PLAN1/variables/foo.newvar.json -O- -q
{"key":"foo.newvar","value":"newvalue"}
Right now you can't create new plan variables like this; still trying to figure out how to make this work.
-
reporter (Reply via conn...@gmail.com):
Carl ,
Thanks for your prompt response.
I will give it a go Friday morning and let you know.
Thanks
Chuck Scott.
Sent from my iPhone
- Log in to comment
Yeah the plugin doesn't expose plan variables right now. Should not be difficult though, will see if I can add this today.