Results 1 to 3 of 3

Thread: Auditing in Tasks

  1. #1
    lmiller is offline Sugar Community Member
    Join Date
    Feb 2010
    Posts
    106

    Default Auditing in Tasks

    I'm trying to audit the status of tasks, so I can know when work is started, and completed, for an accurate tracking of work done. When I do a quick repair and rebuild( I already edited the Subject) I see this text
    REBUILDING AUDIT TABLES...
    Task not Audit Enabled...
    Done

    So out of a curiosity, I build a custom field, and set it to audit, and when I changed it a few times, and saved, I have no place to view the change-log. Is there an easy way to enable the auditing of tasks? Or is it going to be easier to create a logic hook, that puts a time-stamp inside a text field when the Status field is changed?

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Auditing in Tasks

    You need to create an extended vardefs for Tasks (custom/Extension/modules/Tasks/Ext/Vardefs/somescript.php) containing something like that:

    PHP Code:
    <?php
    $dictionary
    ['Task']['audited'] = true;
    ?>
    Obviously you can create folders and files if they don´t exist.
    After that you have to go to Admin -> Repair -> Rebuild Extensions.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    lmiller is offline Sugar Community Member
    Join Date
    Feb 2010
    Posts
    106

    Default Re: Auditing in Tasks

    thanks! This worked, and now I'm going to attempt to make it to where i can audit the status of a task, here is what i came up with, please correct me if i'm wrong

    Code:
    <?php 
    $dictionary['Task']['fields']['status']['audited'] = true;
    ?>

    This worked! Thanks for the help, I can now audit my tasks, and see what time they were started and completed, which will be nice to record the amount of time taken to complete the tasks
    Last edited by lmiller; 2010-05-19 at 04:51 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Auditing Reports?
    By mark.truswell in forum Help
    Replies: 0
    Last Post: 2009-06-11, 09:52 AM
  2. How does auditing work?
    By Proware in forum Help
    Replies: 2
    Last Post: 2008-10-08, 05:11 PM
  3. Questions about auditing
    By arisjr in forum Help
    Replies: 3
    Last Post: 2008-07-09, 09:40 PM
  4. Help with Auditing
    By maak27 in forum General Discussion
    Replies: 3
    Last Post: 2008-06-04, 02:23 PM
  5. Auditing
    By Systems Navigator in forum Dutch
    Replies: 1
    Last Post: 2008-05-11, 10:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •