Hi!
I’m wanting to use audit history to report on when a Project Task went from Active to Completed or Cancelled for example?
Has anyone does this before, or can recommend the right table to use in a GI?
Using Audit History to View Status Progression of Project Tasks
Best answer by Gabriel Michaud

The SQL view adapted for MySql looks like this:
CREATE OR REPLACE VIEW ProjectStatusAuditHistoryView AS
SELECT
AuditHistory.CompanyID,
AuditHistory.batchID,
PMTask.ProjectID,
PMTask.TaskCD,
SUBSTRING_INDEX(
SUBSTRING_INDEX(
REPLACE(ModifiedFields, CHAR(0), '~'),
'Status~', -1
),
'~', 1
) AS ModifiedStatus,
AuditHistory.ChangeDate,
AuditHistory.Operation,
AuditHistory.UserID
FROM
PMTask
INNER JOIN
AuditHistory
ON PMTask.CompanyID = AuditHistory.CompanyID
AND AuditHistory.TableName = 'PMTask'
AND CONCAT(PMTask.ProjectID, CHAR(0), PMTask.TaskCD) = AuditHistory.CombinedKey
WHERE
REPLACE(ModifiedFields, CHAR(0), '~') LIKE '%Status~%';
GOThe customization project is attached to this message.
P.S. i’m using the standard PMProject.Status field, I recall from our discussion that you have a custom status field so the database view would need to be adapted to use this field instead, but otherwise the solution is workable...
Login to the community
No account yet? Create an account
Social Login
Login with your Acumatica accountEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.








