to add a new capability in existing plan via DB or via other way


I would like to add a new capability to all my existing plan. I investigated the Bamboo DB and I didn't found how to insert a new capability linked to all my plan.

Do you have any idea how to proceed? It's not mandoatory to do that via the DB, if you have another solution or way to do ttat, it's also ok

1 answer

I dont suggest directly modifying the database as I believe it will need a service restart to take affect and there is a lot of room to really damage your Bamboo instance. If you modify the database incorrectly, its possible that your Bamboo service will fail to restart for example.

If there isnt an official REST call for what you're trying to do (which there isnt for capability modifications), then open a browser and add/modify a capability with a debugging tool like FireBug (firefox) or the element inspector (chrome) enabled. You will then see the underlying url and arguments being called that modifies capabilities. You can then make that call from the command line via wget or curl or write a small tool in perl, python, etc. that makes the change. This is much safer as you are going through the "front door" of Bamboo as a client and not mucking with the database.

Remember, nearly anything you can do through the web UI you can make from a script if you know the URL and arguments. Some disclaimers:

  • Since these aren't official public REST calls, Atlassian may change them in future Bamboo releases.
  • You may still need to query the database to get certain values to pass to the REST call, but querying, not changing, the database is pretty safe.

It sounds good. Do you have any example because I never made a call REST. I looked at the documentation but it's not so easy

I don't think I could provide an example any easier that what the Atlassian documentation already provides. If you're new to scripting http GET/POST requests then I suggest looking around the internet for information or purchasing a book on the topic since it's a much larger topic than what can be explained in this forum.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

76 views 3 3
Join discussion

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