Post

1 follower Follow
0
Avatar

Child 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 -

https://success.clarizen.com/hc/en-us/community/posts/115000236367-Update-duration-unit-to-hours-from-days-in-Task?input_string=Child%20task%20accept%20default%20duration%20as%20Days

Deeksha Shetty

Please sign in to leave a comment.

2 comments

0
Avatar

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.

Deeksha Shetty 0 votes
Comment actions Permalink