Browse Source

jira: fix error when assigned or reported are default (#7731)

Signed-off-by: Wayne Porter <wporter82@gmail.com>
Wayne Porter 5 years ago
parent
commit
81ed25610d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/jira/jira.plugin.zsh

+ 1 - 1
plugins/jira/jira.plugin.zsh

@@ -43,7 +43,7 @@ function jira() {
     echo "Opening new issue"
     echo "Opening new issue"
     open_command "${jira_url}/secure/CreateIssue!default.jspa"
     open_command "${jira_url}/secure/CreateIssue!default.jspa"
   elif [[ "$action" == "assigned" || "$action" == "reported" ]]; then
   elif [[ "$action" == "assigned" || "$action" == "reported" ]]; then
-    _jira_query $@
+    _jira_query ${@:-$action}
   elif [[ "$action" == "dashboard" ]]; then
   elif [[ "$action" == "dashboard" ]]; then
     echo "Opening dashboard"
     echo "Opening dashboard"
     if [[ "$JIRA_RAPID_BOARD" == "true" ]]; then
     if [[ "$JIRA_RAPID_BOARD" == "true" ]]; then