The efforts are not reflected in "Time Spent" attribute even after updating efforts in "Time-tracking" tab using java code
Hello,
I have a java code to update the efforts in time tracking tab. The values in the time tracking tab is getting updated but not the time spent value.
Also, we have enabled the option to synchronize time tracking value with time spent attribute in our master template.
The time spent value is updated when we manually add the efforts in time tracking tab. It is not working via the code. Below is the part of code:
public void updateTimeTracking(RTCConfig rtcConfig,int workItemId, String efforts, String date, IProjectAreaHandle projectAreaHandle)
|
One answer
Ralph Schoon (63.3k●3●36●46)
| answered May 08, 8:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited May 08, 11:32 a.m. I shared my experience with that API here: https://rsjazz.wordpress.com/2015/03/31/the-work-item-time-tracking-api/
Comments
Namrata K
commented May 12, 12:55 p.m.
Hi Ralph,
setTotalDuration(getTotalDuration().add(workDuration)); getWorkItem().setDuration(getTotalDuration().longValue());
Namrata K
commented May 13, 12:57 a.m.
additionally these lines set estimate value and not the timespent which should automatically update when the timetracking is updated, which is currently not happening. My code is downloadable, so if you want to test it, do so. I do not understand the last comment. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.