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

Dear,

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,786 views 0 6
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