# Execute chained workflow conditionally

**URL:** <https://discuss.bitrise.io/t/execute-chained-workflow-conditionally/9752>\
**Category:** Builds\
**Created:** [July 24, 2019, 1:56pm UTC](https://discuss.bitrise.io/t/execute-chained-workflow-conditionally/9752 "2019-07-24T13:56:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmunoz](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jmunoz](https://discuss.bitrise.io/u/jmunoz)\
**Post date:** [July 24, 2019, 1:56pm UTC](https://discuss.bitrise.io/t/execute-chained-workflow-conditionally/9752/1 "2019-07-24T13:56:05Z")

</div>

## Description of the feature request

Let a chained workflow be executed conditionally

## Use case / for what or how I would use it

Since we don’t have yet selective builds for bitbucket, my use case is this:  
I need to validate if contents in my mobile client folder has changes and set a env variable value for that.  
Chained workflows should execute, or not, if this variable has the correct value. this way I dont have to specify the run\_if statement for every step. Instead I would have in my .yaml file something like this:

```
workflow_name:
   run_if: my_condition
   steps:
        - step1

```

i think this would be helpful in other use cases with chained workflows or parallel execution when it is finally implemented

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [July 24, 2019, 2:15pm UTC](https://discuss.bitrise.io/t/execute-chained-workflow-conditionally/9752/2 "2019-07-24T14:15:00Z")

</div>

Thanks for the #feature-request @jmunoz!

---

<div class="post-metadata">

**Author:** ![shushanikgevorgyan](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@shushanikgevorgyan](https://discuss.bitrise.io/u/shushanikgevorgyan)\
**Post date:** [May 18, 2022, 10:24am UTC](https://discuss.bitrise.io/t/execute-chained-workflow-conditionally/9752/3 "2022-05-18T10:24:07Z")

</div>

Hello! Is there any development related to this feature request?
