|
This plugin currently is only valid for Jira 3.2.x. Please be aware that this will not work for later versions. |
The validator will allows you to require time entry for any transition in the workflow. It will:
1. Check that a value (can be 0) is entered into the "Work Effort" field.
2. If a value is entered (1d 3h, etc.), parse it and validate it.
3. If 0 has been entered, check the past work effort to assure that the user has previously entered a work estimate.
If any of the above fail, return back to the entry screen to require an input.
If all of the above tests pass, and the work effort is not 0, the Validator will update the work log, and trigger a mail notification.
Note. The validator also checks some other custom fields. If they are on the screen, they must be filled in, but this can be ignored since they will not be on your custom screen.
You are welcome to try the validator to see if it will work with your system, but no guarantees. NOTE: Backup your system first and/or use a test system.
This plugin was created with version 0.5 of the plugin toolkit, and runs on version 3.2.2 of Jira. It has not been tested and will probably not work with other versions.
To install the plugin, backup your system, add workflow-checktime.jar to your WEB-INF/lib directory and restart Jira.
To use the plugin:
1. Create a custom field called "Work Effort" (Text field) with the following description text:
Enter work effort in addition to any effort you already entered. Use w d h or m to represent weeks, days, hours and minutes. Examples: 2w, 4d, 5h 30m. (1w = 5d, 1d = 8h, 60m=1h, 30 = 30m).
2. On specific workflow transitions (e.g. when a developer "Fixes" an Issue), create a custom workflow transition screen ("Log work and Fix"), and place the "Work Effort" field on the screen.
3, Associate the "Time Entry and Fix Screen" Workflow Validator with the workflow transition.

Comments (5)
Jan 05, 2006
Jonathan Nolen says:
Do you mind if we move this to the JIRA Plugin Library?Do you mind if we move this to the JIRA Plugin Library?
Jan 24, 2006
Justin Koke says:
Would you mind submitting the source for this plugin either as an attached file ...Would you mind submitting the source for this plugin either as an attached file or you could even create a subversion project for it: http://confluence.atlassian.com/display/DEVNET/Developer+Subversion+Repository I would like to have a look at the work you have done and implement/improve it for the 3.4.x branch of JIRA.
Sep 26, 2006
Zacharias J. Beckman says:
This would be a fantastic plugin... please update it to the latest branch!This would be a fantastic plugin... please update it to the latest branch!
Apr 06, 2007
Raghu Kumar C says:
Can you please attach the source code for this. -raghuCan you please attach the source code for this.
-raghu
May 31, 2007
Gordon Shephard says:
I can confirm that the workflow validator blows up spectacularly on Jira 3.8.1.&...I can confirm that the workflow validator blows up spectacularly on Jira 3.8.1. Pity, because it does precisely what I want it to do. Anybody know of anything that does something similiar?