Skip to content

Instantly share code, notes, and snippets.

View Martin1982's full-sized avatar
🤓
Solving problems

Martin de Keijzer Martin1982

🤓
Solving problems
View GitHub Profile
@relaxnow
relaxnow / get-logged-hours-from-jira
Created February 3, 2012 11:03
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}'