What This Script Does
- First, it retrieves all worklog IDs on the issue that are attributed to the user invoking the transition with the getWorklogIdsForUser() routine
- Then it adds up all the time spent attributed to the user on the particular issue where the transition is invoked using the getWorklogLoggedHours routine
- It checks to see if the user has logged any work on the issue. If not, an error message is presented and the user cannot perform the transition.
Prerequisites
- You have Jira Core, Jira Software or Jira Service Desk installed
- You have Power Scripts for Jira installed
Implementation
Create the following script in SIL Manager and apply it as a validator on a workflow transition.