Skip to content

Commit

Permalink
Alter default JIRA query to handle situations in which instances do n…
Browse files Browse the repository at this point in the history
…ot use the column names we are expecting.
  • Loading branch information
coddingtonbear committed Mar 3, 2015
1 parent f1374f5 commit 34d9934
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions bugwarrior/docs/services/jira.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ Service Features
Specify the Query to Use for Gathering Issues
+++++++++++++++++++++++++++++++++++++++++++++

You can specify the query used for gathering issues by using the
``jira.query`` parameter. For example, to select issues assigned to
'ralph' having a status that is not 'closed' and is not 'resolved', you
could add the following configuration option::
By default, the JIRA plugin will include any issues that are assigned to you
but do not yet have a resolution set, but you can fine-tune the query used
for gather issues by setting the ``jira.query`` parameter.

For example, to select issues assigned to 'ralph' having a status that is
not 'closed' and is not 'resolved', you could add the following
configuration option::

jira.query = assignee = ralph and status != closed and status != resolved

Expand Down
2 changes: 1 addition & 1 deletion bugwarrior/services/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(self, *args, **kw):
)

default_query = 'assignee=' + self.username + \
' AND status != closed and status != resolved'
' AND resolution is null'
self.query = self.config_get_default('query', default_query)
self.jira = JIRA(
options={
Expand Down

0 comments on commit 34d9934

Please sign in to comment.