Hi everyone,

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.

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);

==> The result of this query is only Task A. I expect that the result is A and B.

Do you have any suggestions?

asked 06.06.2017 at 06:25

dolong's gravatar image

dolong
(suspended)
accept rate: 100%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×10
×3

Asked: 06.06.2017 at 06:25

Seen: 1,343 times

Last updated: 06.06.2017 at 06:25