From 132bffcbe164bc3b60208215ddea5bd405605f2b Mon Sep 17 00:00:00 2001 From: Zopanix Date: Mon, 26 Mar 2018 21:04:27 -0400 Subject: [PATCH 1/2] Added a myissues option This will allow the user to directly open the my open issues page. This will make it easier for the user to open his open issues in jira. --- plugins/jira/jira.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh index 052481a60..e03bda90e 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 $@ + 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 From afb028763cf40fc339e49011b2cba124dc108fcb Mon Sep 17 00:00:00 2001 From: Zopanix Date: Tue, 27 Mar 2018 09:16:43 -0400 Subject: [PATCH 2/2] MOdified README to reflect changes for myissues command --- plugins/jira/README.md | 1 + 1 file changed, 1 insertion(+) 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