Skip to content
Bitbucket

New dynamic step condition in Bitbucket Pipelines

Bitbucket Pipelines steps can now use a state condition, a boolean expression over context variables, to decide whether the step runs. It is rolling out to Atlassian Cloud sites now.

  • Rolling out
  • Medium impact
  • Admin review: api change

What it is

Improvement

You can add a state attribute to a step's condition. It holds a boolean expression that can reference pipeline variables, and the step runs only if the expression is true. Both state and changesets conditions are now checked right before each step starts.

Users

Developers writing pipeline configuration can use the state attribute to make step execution depend on pipeline variables.

Developers

Add a state attribute under a step's condition in your pipeline configuration. The condition and variable values are printed in the Build Setup log.

Written from Atlassian's release note and checked against it automatically. Atlassian's original stays the source of truth.

What changed

  1. First published by Atlassian

Atlas Bench began tracking Atlassian Cloud on 29 Oct 2026. Changes before that date are not in this history.

Find out what you are actually running.

Fixed scope. The assessment reads the estate as it is: instances, schemes, licensing, and the decisions a migration would force you to make anyway. You get the findings, the ownership gaps, and the order to close them in.