31c2dc32c2b8e270d0ae10ddc059e192f70f204c

Author
Dmitry <32256512+shvimas@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

jira: add tempo command (#8928)

Diff

 1diff --git a/plugins/jira/README.md b/plugins/jira/README.md
 2index a211e34e0042b1f1403925353e261f2e8863700c..a5633af77c357eae2c4382ea626ce25eaf95b0b6 100644
 3--- a/plugins/jira/README.md
 4+++ b/plugins/jira/README.md
 5@@ -19,6 +19,7 @@ jira            # performs the default action
 6 
 7 jira new        # opens a new issue
 8 jira dashboard  # opens your JIRA dashboard
 9+jira tempo      # opens your JIRA Tempo
10 jira reported [username]  # queries for issues reported by a user
11 jira assigned [username]  # queries for issues assigned to a user
12 jira myissues   # queries for you own issues
13diff --git a/plugins/jira/_jira b/plugins/jira/_jira
14index d64614233d02bfb149c4a046ada0dd3be765107c..1ac3eeda32b38aa4cc559f2526d787bcc7c514a1 100644
15--- a/plugins/jira/_jira
16+++ b/plugins/jira/_jira
17@@ -5,6 +5,7 @@ local -a _1st_arguments
18 _1st_arguments=(
19   'new:create a new issue'
20   'dashboard:open the dashboard'
21+  'tempo:open the tempo'
22   'reported:search for issues reported by a user'
23   'assigned:search for issues assigned to a user'
24   'branch:open the issue named after the git branch of the current directory'
25diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh
26index cb46f540b9b117d69d44c9b11f4b27303b3c5d5d..22807e0ae6c00aa0e055f2b3f6785a8ffb9d2fc1 100644
27--- a/plugins/jira/jira.plugin.zsh
28+++ b/plugins/jira/jira.plugin.zsh
29@@ -54,6 +54,9 @@ function jira() {
30     else
31       open_command "${jira_url}/secure/Dashboard.jspa"
32     fi
33+  elif [[ "$action" == "tempo" ]]; then
34+    echo "Opening tempo"
35+    open_command "${jira_url}/secure/Tempo.jspa"
36   elif [[ "$action" == "dumpconfig" ]]; then
37     echo "JIRA_URL=$jira_url"
38     echo "JIRA_PREFIX=$jira_prefix"