mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Add JIRA setting to show dashboard instead of create issue
My most common JIRA action is to view my dashboard, so that's what the command `jira` should do.
This commit is contained in:
parent
b3f167d998
commit
5d42458b48
1 changed files with 9 additions and 2 deletions
|
|
@ -2,6 +2,10 @@
|
|||
# You can also set JIRA_URL in your .zshrc or put .jira-url in your home directory
|
||||
# .jira-url in the current directory takes precedence
|
||||
#
|
||||
# If you prefer the jira command to show your dashboard, set:
|
||||
#JIRA_DASHBOARD="true"
|
||||
# in you .zshrc
|
||||
#
|
||||
# If you use Rapid Board, set:
|
||||
#JIRA_RAPID_BOARD="true"
|
||||
# in you .zshrc
|
||||
|
|
@ -31,8 +35,11 @@ open_jira_issue () {
|
|||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Opening new issue"
|
||||
open_command "${jira_url}/secure/CreateIssue!default.jspa"
|
||||
if [[ "$JIRA_DASHBOARD" = "true" ]]; then
|
||||
open_command "${jira_url}/secure/Dashboard.jspa"
|
||||
else
|
||||
open_command "${jira_url}/secure/CreateIssue!default.jspa"
|
||||
fi
|
||||
elif [[ "$1" = "assigned" || "$1" = "reported" ]]; then
|
||||
jira_query $@
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue