Created
July 5, 2019 17:39
-
-
Save kmdupr33/7bad6a0b2b7b54e810c5dc61e5532ea2 to your computer and use it in GitHub Desktop.
jira go config w/ custom commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
endpoint: https://jira.myunikey.com | |
user: mdupree | |
custom-commands: | |
- name: remove-attachments | |
help: removes all attachments from a given issue | |
args: | |
- name: ticket | |
required: true | |
script: jira attach list {{args.ticket}} | cut -sf 2 -d \| | sed -n '1!p' | sed 's/ //g' | xargs -L 1 -I % jira attach rm % | |
- name: list-active-untracked-work | |
help: lists tickets whose parent epic is still in the backlog | |
script: jira list -t list-active-untracked-work -q 'issuetype in (Bug, Change, Improvement, "New Feature", Story, Task, "Technical Initiative") AND (status = "In Progress" OR status = "Ready for QA" OR status = "Testing" OR status = "In Review") AND updated >= -2w' -f customfield_10006 | grep SOS- | xargs -I % -L 1 jira view -t untracked-item % | grep -E "New|To" | sort -u | |
- name: label-active-untracked-work | |
script: jira list-active-untracked-work | cut -f 1 -d " "| xargs -I % -L 1 jira labels add % "needs-reconciliation" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment