mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Merge 1ddd678fcc into b3f167d998
This commit is contained in:
commit
36f5096cd1
1 changed files with 10 additions and 3 deletions
|
|
@ -2,8 +2,12 @@
|
||||||
# You can also set JIRA_URL in your .zshrc or put .jira-url in your home directory
|
# 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
|
# .jira-url in the current directory takes precedence
|
||||||
#
|
#
|
||||||
|
# If you prefer the jira command to show your dashboard, set:
|
||||||
|
# JIRA_DEFAULT_ACTION="dashboard"
|
||||||
|
# in you .zshrc
|
||||||
|
#
|
||||||
# If you use Rapid Board, set:
|
# If you use Rapid Board, set:
|
||||||
#JIRA_RAPID_BOARD="true"
|
# JIRA_RAPID_BOARD="true"
|
||||||
# in you .zshrc
|
# in you .zshrc
|
||||||
#
|
#
|
||||||
# Setup: cd to/my/project
|
# Setup: cd to/my/project
|
||||||
|
|
@ -31,8 +35,11 @@ open_jira_issue () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Opening new issue"
|
if [[ "$JIRA_DEFAULT_ACTION" = "dashboard" ]]; then
|
||||||
open_command "${jira_url}/secure/CreateIssue!default.jspa"
|
open_command "${jira_url}/secure/Dashboard.jspa"
|
||||||
|
else
|
||||||
|
open_command "${jira_url}/secure/CreateIssue!default.jspa"
|
||||||
|
fi
|
||||||
elif [[ "$1" = "assigned" || "$1" = "reported" ]]; then
|
elif [[ "$1" = "assigned" || "$1" = "reported" ]]; then
|
||||||
jira_query $@
|
jira_query $@
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue