mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 05:23:33 +02:00
use {{jira}} in custom-command docs
This commit is contained in:
@@ -56,7 +56,7 @@ custom-commands:
|
|||||||
- name: mine
|
- name: mine
|
||||||
help: display issues assigned to me
|
help: display issues assigned to me
|
||||||
script: |-
|
script: |-
|
||||||
jira list --query "resolution = unresolved and assignee=currentuser() ORDER BY created"
|
{{jira}} list --query "resolution = unresolved and assignee=currentuser() ORDER BY created"
|
||||||
```
|
```
|
||||||
Then the next time you run `jira help` you will see your usage:
|
Then the next time you run `jira help` you will see your usage:
|
||||||
```
|
```
|
||||||
@@ -273,10 +273,10 @@ custom-commands:
|
|||||||
script: |-
|
script: |-
|
||||||
if [ -n "$JIRA_PROJECT" ]; then
|
if [ -n "$JIRA_PROJECT" ]; then
|
||||||
# if `project: ...` configured just list the issues for current project
|
# if `project: ...` configured just list the issues for current project
|
||||||
jira list --template table --query "resolution = unresolved and assignee=currentuser() and project = $JIRA_PROJECT ORDER BY priority asc, created"
|
{{jira}} list --template table --query "resolution = unresolved and assignee=currentuser() and project = $JIRA_PROJECT ORDER BY priority asc, created"
|
||||||
else
|
else
|
||||||
# otherwise list issues for all project
|
# otherwise list issues for all project
|
||||||
jira list --template table --query "resolution = unresolved and assignee=currentuser() ORDER BY priority asc, created"
|
{{jira}} list --template table --query "resolution = unresolved and assignee=currentuser() ORDER BY priority asc, created"
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
* `jira sprint` for listing issues in your current sprint
|
* `jira sprint` for listing issues in your current sprint
|
||||||
@@ -287,7 +287,7 @@ custom-commands:
|
|||||||
script: |-
|
script: |-
|
||||||
if [ -n "$JIRA_PROJECT" ]; then
|
if [ -n "$JIRA_PROJECT" ]; then
|
||||||
# if `project: ...` configured just list the issues for current project
|
# if `project: ...` configured just list the issues for current project
|
||||||
jira list --template table --query "sprint in openSprints() and type != epic and resolution = unresolved and project=$JIRA_PROJECT ORDER BY rank asc, created"
|
{{jira}} list --template table --query "sprint in openSprints() and type != epic and resolution = unresolved and project=$JIRA_PROJECT ORDER BY rank asc, created"
|
||||||
else
|
else
|
||||||
# otherwise list issues for all project
|
# otherwise list issues for all project
|
||||||
echo "\"project: ...\" configuration missing from .jira.d/config.yml"
|
echo "\"project: ...\" configuration missing from .jira.d/config.yml"
|
||||||
|
|||||||
Reference in New Issue
Block a user