# When query string includes "User / Department / Group selection", and includes both "and" & "or". kintone.app.getQueryCondition() returns null.

**URL:** <https://forum.kintone.dev/t/when-query-string-includes-user-department-group-selection-and-includes-both-and-or-kintone-app-getquerycondition-returns-null/332>\
**Category:** General\
**Created:** [July 9, 2020, 6:04am UTC](https://forum.kintone.dev/t/when-query-string-includes-user-department-group-selection-and-includes-both-and-or-kintone-app-getquerycondition-returns-null/332 "2020-07-09T06:04:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 9, 2020, 6:04am UTC](https://forum.kintone.dev/t/when-query-string-includes-user-department-group-selection-and-includes-both-and-or-kintone-app-getquerycondition-returns-null/332/1 "2020-07-09T06:04:30Z")

</div>

When a query string doesn’t include “User / Department / Group selection” type field, and the query string include both “and” & “or”. like this:

[https://test.cybozu.com/k/9237/?&q=(f6202219%20in%20(%226202213%22))%20and%20(f6202211%20%3D%20%22Sally.Yang%22)%20or%20(f6202205%20in%20(%226202208%22))](https://test.cybozu.com/k/9237/?&q=(f6202219%20in%20(%226202213%22))%20and%20(f6202211%20%3D%20%22Sally.Yang%22)%20and%20(f6202205%20in%20(%226202208%22)))

Invoke:&nbsp;kintone.app.getQueryCondition();

It returns correct result as below:

But when the query string includes&nbsp;“User / Department / Group selection” type field, and the query string include both “and” & “or”. Invoke:

kintone.app.getQueryCondition();

It returns null, and an error shows on the page:

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 14, 2020, 1:30am UTC](https://forum.kintone.dev/t/when-query-string-includes-user-department-group-selection-and-includes-both-and-or-kintone-app-getquerycondition-returns-null/332/2 "2020-07-14T01:30:37Z")

</div>

Linner

Thanks for your question.

After doing some checks on our side, we’ve found this to be a bug on the Kintone platform.  
The bug has been shared with the Kintone Dev team.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 23, 2020, 7:40am UTC](https://forum.kintone.dev/t/when-query-string-includes-user-department-group-selection-and-includes-both-and-or-kintone-app-getquerycondition-returns-null/332/3 "2020-07-23T07:40:59Z")

</div>

William,

Thanks for your help. Do you have any plan for the fixing of the bug?

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 27, 2020, 7:13am UTC](https://forum.kintone.dev/t/when-query-string-includes-user-department-group-selection-and-includes-both-and-or-kintone-app-getquerycondition-returns-null/332/4 "2020-07-27T07:13:20Z")

</div>

The team is working on the bug fix, and is planned to be released in the coming months, although we cannot give you an ETA.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 29, 2020, 2:12am UTC](https://forum.kintone.dev/t/when-query-string-includes-user-department-group-selection-and-includes-both-and-or-kintone-app-getquerycondition-returns-null/332/5 "2020-07-29T02:12:37Z")

</div>

William,  
Got it, thanks for your help.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [September 1, 2020, 2:07am UTC](https://forum.kintone.dev/t/when-query-string-includes-user-department-group-selection-and-includes-both-and-or-kintone-app-getquerycondition-returns-null/332/6 "2020-09-01T02:07:01Z")

</div>

Hi Linner

I believe the bug you ran into should be fixed with this months update 🙂

[https://developer.kintone.io/hc/en-us/articles/900002287243](https://developer.kintone.io/hc/en-us/articles/900002287243)
