Skip to content

Commit

Permalink
jipsearch: Fixed multiple -k attributes on command line
Browse files Browse the repository at this point in the history
  • Loading branch information
JLLinaro committed Jun 30, 2023
1 parent b8a88a3 commit 1580835
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jipdate/jipsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@ def create_jql(jira, initial_jql):
jql_parts.append(initial_jql)

if cfg.args.key:
for v in cfg.args.key:
jql_parts.append(f"key={v}")
jql_part = f"key in ({cfg.args.key[0]}"
for v in cfg.args.key[1:]:
jql_part += f", {v}"
jql_parts.append(f"{jql_part})")

if cfg.args.project:
jql_parts.append("project in (%s)" % cfg.args.project)
Expand Down

0 comments on commit 1580835

Please sign in to comment.