From 81ed25610dd6a7de858c38fa5bfb1545ebfc46e0 Mon Sep 17 00:00:00 2001
From: Wayne Porter <wporter82@users.noreply.github.com>
Date: Tue, 7 May 2019 09:11:28 -0700
Subject: [PATCH] jira: fix error when assigned or reported are default (#7731)

Signed-off-by: Wayne Porter <wporter82@gmail.com>
---
 plugins/jira/jira.plugin.zsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh
index 052481a60..fcf8b2959 100644
--- a/plugins/jira/jira.plugin.zsh
+++ b/plugins/jira/jira.plugin.zsh
@@ -43,7 +43,7 @@ function jira() {
     echo "Opening new issue"
     open_command "${jira_url}/secure/CreateIssue!default.jspa"
   elif [[ "$action" == "assigned" || "$action" == "reported" ]]; then
-    _jira_query $@
+    _jira_query ${@:-$action}
   elif [[ "$action" == "dashboard" ]]; then
     echo "Opening dashboard"
     if [[ "$JIRA_RAPID_BOARD" == "true" ]]; then