mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-29 09:10:07 +00:00
Merge pull request #5044 from charpeni/jira-rapid-board
JIRA Plugin will open rapidboard
This commit is contained in:
commit
5b9c6c15e2
1 changed files with 5 additions and 2 deletions
|
@ -38,7 +38,11 @@ function jira() {
|
||||||
_jira_query $@
|
_jira_query $@
|
||||||
elif [[ "$action" == "dashboard" ]]; then
|
elif [[ "$action" == "dashboard" ]]; then
|
||||||
echo "Opening dashboard"
|
echo "Opening dashboard"
|
||||||
open_command "${jira_url}/secure/Dashboard.jspa"
|
if [[ "$JIRA_RAPID_BOARD" == "true" ]]; then
|
||||||
|
open_command "${jira_url}/secure/RapidBoard.jspa"
|
||||||
|
else
|
||||||
|
open_command "${jira_url}/secure/Dashboard.jspa"
|
||||||
|
fi
|
||||||
elif [[ "$action" == "dumpconfig" ]]; then
|
elif [[ "$action" == "dumpconfig" ]]; then
|
||||||
echo "JIRA_URL=$jira_url"
|
echo "JIRA_URL=$jira_url"
|
||||||
echo "JIRA_PREFIX=$jira_prefix"
|
echo "JIRA_PREFIX=$jira_prefix"
|
||||||
|
@ -99,4 +103,3 @@ function _jira_query() {
|
||||||
query="${lookup}+%3D+%22${jira_name}%22+AND+resolution+%3D+unresolved+ORDER+BY+priority+DESC%2C+created+ASC"
|
query="${lookup}+%3D+%22${jira_name}%22+AND+resolution+%3D+unresolved+ORDER+BY+priority+DESC%2C+created+ASC"
|
||||||
open_command "${jira_url}/secure/IssueNavigator.jspa?reset=true&jqlQuery=${query}"
|
open_command "${jira_url}/secure/IssueNavigator.jspa?reset=true&jqlQuery=${query}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue