# Liquibase Contexts is not working

**URL:** <https://forum.liquibase.org/t/liquibase-contexts-is-not-working/7688>\
**Category:** Uncategorized\
**Created:** [January 16, 2023, 6:34pm UTC](https://forum.liquibase.org/t/liquibase-contexts-is-not-working/7688 "2023-01-16T18:34:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay413](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@vijay413](https://forum.liquibase.org/u/vijay413)\
**Post date:** [January 16, 2023, 6:34pm UTC](https://forum.liquibase.org/t/liquibase-contexts-is-not-working/7688/1 "2023-01-16T18:34:57Z")

</div>

I am trying to execute insert script only contexts=QA using below command  
liquibase --contexts=QA update

But it is executing all the changesets on the databasechangelog. How to fix this.

The code is below.

–liquibase formatted sql  
–changeset bob:1 contextFilter:test  
insert into news (id, title) values (1, ‘Liquibase 0.1 Released’)

–changeset bob:2  
insert into news (id, title) values (2, ‘Liquibase 0.2 Released’)

–changeset bob:3 contextFilter:test  
insert into news (id, title) values (3, ‘Liquibase 0.3 Released’)

–changeset bob:4  
insert into news (id, title) values (4, ‘Liquibase 0.4 Released’)

–changeset bob:5 contextFilter:QA  
insert into news (id, title) values (5, ‘Liquibase 0.5 Released’)

---

<div class="post-metadata">

**Author:** ![xvc](https://avatars.discourse-cdn.com/v4/letter/x/cdc98d/32.png) [@xvc](https://forum.liquibase.org/u/xvc)\
**Post date:** [February 14, 2023, 5:41pm UTC](https://forum.liquibase.org/t/liquibase-contexts-is-not-working/7688/2 "2023-02-14T17:41:37Z")

</div>

I observed the same behavior. It seems to impact mainly using context filters in SQL

**EDIT** : I figured it out. I think they changed “context” to “contextFilter” recently. The older version uses “context”. I was able to get contexts working in my SQL scripts using “context”:

–changeset xvc:1 context:text  
–comment: Using context with sql scripts  
select ‘test’

I use Liquibase 4.14
