<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: TaskQuery with additional property</title><link>https://answers.axonivy.com/questions/2672/taskquery-with-additional-property</link><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I have the issue related to additional property in TaskQuery:
Task A doesn't have any additional property and Task B has the "DISPLAY" additional property.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;TaskQuery stateQuery = TaskQuery.create().where().state().isEqual(TaskState.SUSPENDED).or().state().isEqual(TaskState.RESUMED).or().state().isEqual(TaskState.PARKED);
TaskQuery additionalPropertyQuery = TaskQuery.create().where().additionalProperty("HIDE").isNull();
TaskQuery query = TaskQuery.create().where().and(stateQuery).and(additionalPropertyQuery);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;==&amp;gt; The result of this query is only Task A. I expect that the result is A and B.&lt;/p&gt;
&lt;p&gt;Do you have any suggestions?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2672/taskquery-with-additional-property" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 30 Jul 2024 07:15:34 -0000</lastBuildDate></channel></rss>