[Vtigercrm-commits] [Vtiger development] #8552: Workflow criteria for 'Assigned To' in Tickets Not Working
Vtiger development
vtiger-tickets at trac.vtiger.com
Sun May 3 14:19:34 GMT 2015
#8552: Workflow criteria for 'Assigned To' in Tickets Not Working
------------------------+------------------------
Reporter: skenow | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 6.2.0
Severity: Medium | Keywords:
------------------------+------------------------
The criteria for 'assigned to' are not being honored in scheduled
workflows
In the database record for this workflow, the conditions are
{{{
[{"fieldname":"createdtime","operation":"more than hours
before","value":"72","valuetype":"","joincondition":"and","groupjoin":"and","groupid":"0"},
{"fieldname":"ticketstatus","operation":"is
not","value":"Closed","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},
{"fieldname":"ticketstatus","operation":"is
not","value":"Cancelled","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},
{"fieldname":"assigned_user_id","operation":"is
not","value":"36","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},
{"fieldname":"modifiedtime","operation":"more than hours
before","value":"48","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"}]
}}}
Yet, the query being executed is -
{{{
SELECT vtiger_troubletickets.ticketid
FROM vtiger_troubletickets
INNER JOIN vtiger_crmentity ON vtiger_troubletickets.ticketid =
vtiger_crmentity.crmid
LEFT JOIN vtiger_users ON vtiger_crmentity.smownerid = vtiger_users.id
LEFT JOIN vtiger_groups ON vtiger_crmentity.smownerid =
vtiger_groups.groupid
WHERE vtiger_crmentity.deleted=0
AND (( vtiger_crmentity.createdtime < '2015-04-29 14:04:01')
and ( vtiger_troubletickets.status <> 'Closed')
and ( vtiger_troubletickets.status <> 'Cancelled')
and ( vtiger_crmentity.modifiedtime < '2015-04-30 14:04:01')
and ( (trim(CONCAT(vtiger_users.first_name,'
',vtiger_users.last_name)) <> '36' or vtiger_groups.groupname <> '36')) )
AND vtiger_troubletickets.ticketid > 0
}}}
The fields mapped to the Assigned To criteria are the names, not the
assigned_user_id
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8552>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list