Symptoms
K2 API not returning correct count of actions in a given workflow
Diagnoses
When opening the K2 Worklist using the client API and the criteria below, incorrect actions are returned for some of the tasks:
wlc.AddFilterField(WCField.ProcessStartDate, WCCompare.GreaterOrEqual, DateTime.Now.AddDays(-90))
Resolution
This issue was logged as a bug. Unfortunately there the issue cannot be coldfixed. A workaround was implemented to only load the actions when the task is being opened by the end-user.