###############################################
###############################################
jq '.eventsJson[].description'
jq '.eventsJson[] | .description+(if (.type|contains("Task")|not) then " - "+(.type|match(":(.+)")|.captures[0].string) else "" end)'
jq '.lanes[] | .name'
jq '. | to_entries[] | select(.key | endswith("Definition") ) | .value | .title+": "+.description '
jq '.eventsJson[] | .requirementsJson[]? | .description'
jq --arg select "system" '.eventsJson[] | .requirementsJson[]? | select((.cardType.title|ascii_downcase)==($select|ascii_downcase)) | .description'
jq --raw-output '
.eventsJson | to_entries | map(.value.position=.key+1) | map(.value) | .[] |
.description as $parent | .position as $position |
.requirementsJson[]? |
[$position, $parent, .cardType.title, .description] | @csv |
gsub("
(\s|<br(\s/)?>)
";"";"m") | gsub("<br(\s/)?>|\s";"\n") | gsub("<[^>]*>";"") '
#replace this jq '... | .arrayOfObjects[]' #with this jq '... | .arrayOfObjects | to_entries | map(.value.position=.key+1) | map(.value) | .[]'
jq '... | gsub("<[^>]*>"; "")'
jq '... | gsub("
(\s|<br(\s/)?>)
";"";"m") | gsub("<br(\s/)?>|\s";"\n") | gsub("<[^>]*>";"")'
jq '... +" [" + (.id | match("^.{2}") | .string) + "]"'