Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,538
Community Members
 
Community Events
168
Community Groups

Is there a way to programmatically change bamboo tasks (like enable and disable)

Is there a way to programmatically change bamboo tasks (like enable and disable)

 

i noticed the details of tasks are stored in xml_definition_data.  is there a plugin that allows for disabling or enabling programmatically?

 

thanks

1 answer

1 vote

Hi @lance_lyons

There is no public API to change this flag directly, but I see two other options that may help:

  1. Use Bamboo specs. In specs the following code part would disable the task:
    .stages(new Stage("Default Stage")
    .jobs(new Job("Default Job", new BambooKey("JOB1"))
    .tasks(new ScriptTask().enabled(false)
    More details about specs can be found here: Bamboo Specs - Atlassian Documentation.
  2. Use the Conditional tasks for Bamboo plugin to allow you enabling/disabling tasks based on variables or users running them.
    More details about this plugin can be found in this post:
    How we can configure job with conditional tasks for bamboo plugin? - Atlassian Community

I hope those options can help you.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events