Skip to content

Instantly share code, notes, and snippets.

@albertywu
Last active November 1, 2021 20:11
Show Gist options
  • Select an option

  • Save albertywu/a5145ed25363159dcae9c8f99010d070 to your computer and use it in GitHub Desktop.

Select an option

Save albertywu/a5145ed25363159dcae9c8f99010d070 to your computer and use it in GitHub Desktop.
jira_cli.md
go install github.com/ankitpokhrel/jira-cli/cmd/jira@latest
export JIRA_API_TOKEN=$(usso -ussh t3 -print)
jira setup

# Add to startup script:
jira()
{
	unset -f jira
	JIRA_API_TOKEN=$(usso -ussh t3 -print)
	export JIRA_API_TOKEN
	jira "$@"
}

Read Jira

List all issues, using default project id

jira issue list

List issues, for specified username

jira issue list -a<username>

List issues, for specified project id

jira issue list -p<project id>

List issues that are In Progress | Open | Blocked | Closed

jira issue list -s <"In Progress" | Open | Blocked | Closed>

Write Jira

Move jira issue to a new state

jira issue move <Issue ID> <State>

where State is <In Progress | Open | Blocked | Closed>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment