Last active
December 11, 2024 16:21
-
-
Save zph/917d1ca2ac2becd15375ce8caf89563a to your computer and use it in GitHub Desktop.
jira-cli
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
#!/usr/bin/env bash | |
set -eou pipefail | |
jira issue list \ | |
-a$(jira me) \ | |
--plain \ | |
--columns id,summary,status | | |
fzf \ | |
--layout=reverse \ | |
--header-lines=1 \ | |
--preview-window 'bottom:80%:wrap' \ | |
--preview 'jira issue view {1}' \ | |
--bind 'alt-p:toggle-preview' \ | |
--bind='alt-j:preview-up' \ | |
--bind='alt-k:preview-down' \ | |
--bind 'alt-e:execute(jira issue edit {1})' \ | |
--bind 'alt-o:become(jira open {1})' \ | |
--bind 'alt-u:become(jira open --no-browser {1} | pbcopy)' \ | |
--bind "alt-y:become[jira open --no-browser {1} | awk -F/ '{print \$NF}' | pbcopy ]" \ | |
--bind 'alt-m:execute(jira issue move {1})' \ | |
--bind 'alt-c:become(jira issue comment add {1})' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment