Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 3489782

Browse files
committed
more search capabilities
1 parent 7c9237b commit 3489782

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

JIRAClient.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,14 @@ def find(self ,specifications):
143143
else:
144144
query += ' AND status = %s'%(status)
145145

146-
if specifications.get('label'):
146+
if specifications.get('label',None):
147147
label = specifications['label']
148148
query += ' AND labels = %s'%label
149149

150+
if specifications.get('text',None):
151+
string = specifications['text']
152+
query += ' AND text ~ "%s"'% string
153+
150154
return self._find( query )
151155

152156
def comment(self, key, comment):

0 commit comments

Comments
 (0)