Do you have any suggestion for me ?
Post
FollowChild task accept default duration unit as Days
Hi,
I am creating a task using CreateAndRetrieve using Clarizen API. A parent task and Child task gets created. I am setting the Work to 0.25, it set the Work and Work variance of parent task to 2h which is the desired result. But for the child task it sets Work as 0.25d instead of 2h, irrespective of changing the duration unit.
Please help, i need to set it to 2h instead of 0.25d
Below is the code -
LinkEntityToTask.ClarizenAPI2.Duration duration = new LinkEntityToTask.ClarizenAPI2.Duration();
duration.Value = Convert.ToDouble(fieldvalue);
duration.Unit = DurationUnit.Hours;
duration.DurationType = DurationType.Default;
fv.Value= duration.Value;
We had created a thread 3h ago for the same -
Please sign in to leave a comment.
2 comments
Date
Votes
This issue is resolved when i added the Duration unit to the object as hours and mapped field value to the duration object instead of duration value in the above code.