Last active
March 11, 2019 17:24
-
-
Save davorbadrov/d52bd1d6a5e293f38bd98e4a1e34cf3e to your computer and use it in GitHub Desktop.
Extracts working hours for JIRA
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
// 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