This project is read-only.
3

Closed

Sum of Int fields doesn't work

description

Hello,
In the latest code, if I want to 'sum' 2 custom Int fields (fields that doesn't exist in the OOB WI), it doesn't work.
Code crashes here.. same works if we have 'Double' fields

file attachments

Closed Feb 14, 2015 at 4:10 PM by giuliov
Moved to GitHub Issue #7

comments

MattyBoy wrote Jul 10, 2014 at 11:48 PM

Unboxing problem. This is going to be a bit slower, but it does work.

Change line 49 in WorkItemHelper.cs

From
TType convertedValue = (TType) workItem[fieldName];

To:
TType convertedValue = (TType) (dynamic)workItem[fieldName];

wrote Jul 10, 2014 at 11:49 PM

wrote Feb 14, 2015 at 4:10 PM