[rt-users] Append Data to CustomFields

Kenneth Crocker kenn.crocker at gmail.com
Mon May 28 21:20:13 EDT 2012


HoboKing,

You could create a CF with SeeCF rights only to Users and then write a
scrip so that when the TimeWorked field is updated, the scrip subtracts the
old value from the new value and then adds that result to the CF.
You could also add a condition to check the date and if it is month-end or
something you could move the final "TomeWorked" value to a Month-end Time
CF and then zero out the contiguos one.
That way, you won't run into problems of some user entering a non-inter
type value into the field. You might want to grant "ModifyCF" to the
SuperUSer or some management group of users so they can override the value
when necessary.
It all depends on what you want to accomplish.
TimeWorked is already designed to receive integers. So all you really need
is a CF to act as a monthly or yearly, etc. accumulator, along with a
routine to zero out at the end of that cycle.
The best way is to write a cronjob to run through all tickets on whatever
cycle you want to accumulate and have that routine do the
accumulate/move/zero work. That way you get ALL tickets updated
consistently, not just the ones that were updated in a given cycle.

Hope this helps.

Kenn

On Mon, May 28, 2012 at 11:44 AM, TheHoboKing
<demon_eyes_kyoms at hotmail.com>wrote:

>
> Hi,
>
> I'm still quite new at RT and was wondering if there's a way to have
> appendable/updatable CustomFields like the TimeWorked field?
>
> Whenever I update a ticket, the TimeWorked field is blank, any value
> (digits) I add will automatically be added to the old value, it'll make a
> simple addition.
>
> How can I do the same with CustomFields? Either via the webUI, scrip or
> back-end (Update.html ? ModifyAll.html?)
>
> I'm running RT 4.0.5
>
> Thank you!
> --
> View this message in context:
> http://old.nabble.com/Append-Data-to-CustomFields-tp33920988p33920988.html
> Sent from the Request Tracker - User mailing list archive at Nabble.com.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120528/6f8390b4/attachment.htm>


More information about the rt-users mailing list