Skip to content

Instantly share code, notes, and snippets.

@davorbadrov
Last active March 11, 2019 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davorbadrov/d52bd1d6a5e293f38bd98e4a1e34cf3e to your computer and use it in GitHub Desktop.
Save davorbadrov/d52bd1d6a5e293f38bd98e4a1e34cf3e to your computer and use it in GitHub Desktop.
Extracts working hours for JIRA
// The worklog has to be open in timesheets and
// Developer Console must be open with Right-click > Inspect so the source maps take effect.
// Paste and run the code inside the Console.
// Note: Tested only on Chrome.
_issueTitles = document.querySelectorAll('.tempo-issue-table-td-issue [title]')
_issueDescriptions = document.querySelectorAll('.tempo-issue-table-td-comment [title]')
_workedHours = document.querySelectorAll('.tempo-issue-table-td-worked [title]')
_log = ''
for (let i = 0; i < _issueTitles.length; i++) {
_log += `
*${_issueTitles[i].title}* - ${_workedHours[i].innerText}
${_issueDescriptions[i].innerText}
`
}
console.log(_log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment