From 30d3b8550bb23a98b899e636366471e1bbed08e7 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 3 Jan 2015 23:04:36 +0100 Subject: [PATCH 1/1] TaskFilter: Enforce exact match when building filter --- tasklib/task.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasklib/task.py b/tasklib/task.py index 01a0bcc..b1af4f7 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -433,7 +433,9 @@ class TaskFilter(SerializingObject): if key == 'uuid': self.filter_params.insert(0, value) else: - self.filter_params.append("{0}:'{1}'".format(key, value)) + # We enforce equality match by using is keyword + # Also, without using this syntax, filter fails due to TW-1479 + self.filter_params.append("{0}.is:'{1}'".format(key, value)) def get_filter_params(self): return [f for f in self.filter_params if f] -- 2.39.5