Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users
Re: Append Data to CustomFields
 

Index | Next | Previous | View Flat


kenn.crocker at gmail

May 28, 2012, 6:20 PM


Views: 1565
Permalink
Re: Append Data to CustomFields [In reply to]

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>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.
>
>

Subject User Time
Append Data to CustomFields demon_eyes_kyoms at hotmail May 28, 2012, 11:44 AM
    Re: Append Data to CustomFields ruz at bestpractical May 28, 2012, 12:53 PM
    Re: Append Data to CustomFields kenn.crocker at gmail May 28, 2012, 6:20 PM
    Re: Append Data to CustomFields JThuau at spacex May 29, 2012, 8:47 AM
        Re: Append Data to CustomFields JThuau at spacex May 29, 2012, 8:49 AM
    Re: Append Data to CustomFields demon_eyes_kyoms at hotmail May 30, 2012, 10:53 AM
        Re: Append Data to CustomFields mike.coakley at gmail May 30, 2012, 2:44 PM
            Re: Append Data to CustomFields kenn.crocker at gmail May 30, 2012, 5:19 PM
            Re: Append Data to CustomFields demon_eyes_kyoms at hotmail May 31, 2012, 2:03 PM
                Re: Append Data to CustomFields demon_eyes_kyoms at hotmail Jun 4, 2012, 6:46 AM
                    Re: Append Data to CustomFields trs at bestpractical Jun 4, 2012, 6:49 AM
                        Re: Append Data to CustomFields demon_eyes_kyoms at hotmail Jun 4, 2012, 7:42 AM
                            Re: Append Data to CustomFields mike.coakley at gmail Jun 4, 2012, 10:25 AM
                            Re: Append Data to CustomFields mike.coakley at gmail Jun 4, 2012, 5:54 PM
                                Re: Append Data to CustomFields[SOLVED] demon_eyes_kyoms at hotmail Jun 6, 2012, 7:37 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.