# Bug in workflow job filters?

**URL:** <https://discuss.circleci.com/t/bug-in-workflow-job-filters/37946>\
**Category:** Build Environment\
**Tags:** workflow, circle-yml\
**Created:** [October 29, 2020, 6:34pm UTC](https://discuss.circleci.com/t/bug-in-workflow-job-filters/37946 "2020-10-29T18:34:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebs](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sebs/32/25874_2.png) [@sebs](https://discuss.circleci.com/u/sebs)\
**Post date:** [October 29, 2020, 6:34pm UTC](https://discuss.circleci.com/t/bug-in-workflow-job-filters/37946/1 "2020-10-29T18:34:40Z")

</div>

I think I may have found a bug with workflow job filters which I could use some input on.

Consider the following config and pushing to the branch “branch-something”, the job “next-job-a-2” incorrectly runs. I would expect that job “check-branch-a” runs because the branch only filter passes, while the job “check-branch-a-2” should not run (and it appears not to because its not rendered in the workflow graph) yet job “next-job-a-2” executes, even though one of its requires has not run. Job “next-job-a” correctly runs.

Any input would be helpful. Thanks!

```
version: 2.1

jobs:
  checking-branch-job:
    docker:
      - image: circleci/node:10.8
    steps:
      - run: echo "hello world"
  next-job:
    docker:
      - image: circleci/node:10.8
    steps:
      - run: echo "1"

workflows:
  build:
    jobs:
      - checking-branch-job:
          name: check-branch-a
          filters:
            branches:
              only:
                - /^branch-.*$/
      - checking-branch-job:
          name: check-branch-a-2
          filters:
            branches:
              only:
                - /^branch-.*-2$/
      - next-job:
          name: next-job-a
          requires:
            - check-branch-a
      - next-job:
          name: next-job-a-2
          requires:
            - check-branch-a
            - check-branch-a-2
```

---

<div class="post-metadata">

**Author:** ![owenjoliver](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/owenjoliver/32/28293_2.png) [@owenjoliver](https://discuss.circleci.com/u/owenjoliver)\
**Post date:** [April 26, 2022, 2:59pm UTC](https://discuss.circleci.com/t/bug-in-workflow-job-filters/37946/2 "2022-04-26T14:59:42Z")

</div>


