The script doesn't pull worklogs for tasks assigned to a different user #1
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The worklogs of the tasks aren't properly picked because it searches for the issues based on the assignee field which changes when the task is closed/reassigned to RM. This can be avoided by searching through all issues/adding RM accounts to the search, but it will increase the execution time greatly.
When the RM accounts are in the scope, it may be a good idea to adjust the jql query for searching for issues to narrow down the amount of issues to check.
The API used in the solution wasn't valid, changing the jira api from issue/picker to issue/search resolved the issue.