Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 14, 2019

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?



1 answer

1 vote
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 19, 2019

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
AUG Leaders

Atlassian Community Events