diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-05-08 20:42:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-08 20:42:12 +0200 |
commit | 10c1b7d2ca78066e92fd2ff8ff793d8d0a2a9121 (patch) | |
tree | 946d9f8b758ebdd63da96152ca56b154c99068da /plugins/jira | |
parent | ebc700be9b2fa7ae770a644093a5c46a8e323726 (diff) | |
parent | 0232ac4bb1cb64b5bfaa7e5fc979d6f7ab23e534 (diff) | |
download | zsh-10c1b7d2ca78066e92fd2ff8ff793d8d0a2a9121.tar.gz zsh-10c1b7d2ca78066e92fd2ff8ff793d8d0a2a9121.tar.bz2 zsh-10c1b7d2ca78066e92fd2ff8ff793d8d0a2a9121.zip |
jira: add a myissues option (#6696)
This will allow the user to directly open the "my open issues" page. This
will make it easier for the user to open their open issues in jira.
Diffstat (limited to 'plugins/jira')
-rw-r--r-- | plugins/jira/README.md | 1 | ||||
-rw-r--r-- | plugins/jira/jira.plugin.zsh | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/jira/README.md b/plugins/jira/README.md index a934ae68c..091dccb97 100644 --- a/plugins/jira/README.md +++ b/plugins/jira/README.md @@ -21,6 +21,7 @@ jira new # opens a new issue jira dashboard # opens your JIRA dashboard jira reported [username] # queries for issues reported by a user jira assigned [username] # queries for issues assigned to a user +jira myissues # queries for you own issues jira branch # opens an existing issue matching the current branch name jira ABC-123 # opens an existing issue jira ABC-123 m # opens an existing issue for adding a comment diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh index fcf8b2959..e706948e9 100644 --- a/plugins/jira/jira.plugin.zsh +++ b/plugins/jira/jira.plugin.zsh @@ -44,6 +44,9 @@ function jira() { open_command "${jira_url}/secure/CreateIssue!default.jspa" elif [[ "$action" == "assigned" || "$action" == "reported" ]]; then _jira_query ${@:-$action} + elif [[ "$action" == "myissues" ]]; then + echo "Opening my issues" + open_command "${jira_url}/issues/?filter=-1" elif [[ "$action" == "dashboard" ]]; then echo "Opening dashboard" if [[ "$JIRA_RAPID_BOARD" == "true" ]]; then |