Skip to content

Instantly share code, notes, and snippets.

@psu
Last active January 24, 2026 09:03
Show Gist options
  • Select an option

  • Save psu/8042ce8e1985090275ed36075b48bbc7 to your computer and use it in GitHub Desktop.

Select an option

Save psu/8042ce8e1985090275ed36075b48bbc7 to your computer and use it in GitHub Desktop.
Jira API calls with JQ parsing

jira-cmd + JQ => Alfred App

Search Jira with jira-cmd (palashkulsh/jira-cmd) and re-structure the result into Alfred app Script Filter JSON

jira jql --json true "(summary ~ '$1' OR description ~ '$1') AND project IN (${projects})" | \
jq '.[] | {
  uid: .key, 
  title: "\(.key): \(.fields.summary)", 
  subtitle: "Component: \(.fields.components[0].name)", 
  arg: .key 
}' | \
jq -s '{items: . }'
```bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment