Skip to content

Instantly share code, notes, and snippets.

@relaxnow
Created February 3, 2012 11:03
Show Gist options
  • Save relaxnow/1729676 to your computer and use it in GitHub Desktop.
Save relaxnow/1729676 to your computer and use it in GitHub Desktop.
Get the total of hours logged in Jira from your activity stream
curl -q -u $USER:$JIRAPASSWORD "https://$JIRADOMAIN/activity?maxResults=1300&streams=user+IS+$USER&os_authType=basic" | grep 'Logged' | grep -o '[0-9][0-9.]*' | awk '{s+=$1} END {print s}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment