[rt-users] Mandatory time worked

Emmanuel Lacour elacour at easter-eggs.com
Thu Sep 30 01:52:57 EDT 2010


On Thu, Sep 23, 2010 at 09:46:07PM +0100, Jim Tambling wrote:
> I have probably asked this before, but here goes.
>  
> I want to force RT users to fill in the TimeWorked field every time they
> update a ticket, much like the MandatorySubject extension works on
> ticket creation. Has anybody got something similar to this already? If
> not I am prepared to have a stab at it myself, but since I am only just
> starting to learn Perl I'm probably going to go about it the wrong way
> :-). Would I be able to do this as a scrip action or would I have to
> create a module and do it via callbacks? All help/advice/solutions
> greatly appreciated.
>  

you can create a callback using the callback name "BeforeUpdate"
provided in share/html/Ticket/Update.html which check TimeWorked
submitted field and set $skip_update to 1 if empty and push an
explanation in @result.

see http://wiki.bestpractical.com/ for some examples of such callbacks.



More information about the rt-users mailing list