Last active
March 1, 2024 15:19
-
-
Save psu/8042ce8e1985090275ed36075b48bbc7 to your computer and use it in GitHub Desktop.
JQ & Jira 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
############################################ | |
# JQ & Jira commands -- Pontus Sundén 2024 # | |
############################################ | |
# 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: . }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment