How to enter time tracking values by API
Accepted answer
3 other answers
Hi Berthold,
Are you talking about entering time into fields like time spent? If so, you may find this post helpful: https://jazz.net/forum/questions/9007/how-to-change-the-value-of-attributes-time-spent-etc.
Are you talking about entering time into fields like time spent? If so, you may find this post helpful: https://jazz.net/forum/questions/9007/how-to-change-the-value-of-attributes-time-spent-etc.
Comments
Jazzers,
if looking at the published RTC SDK (setup cp. e.g. Ralph Schoon's Blog) and Java Searching for TimeSheet you can find that the com.ibm.team.rtc.reports.service.test has a class BaseRTCReportTest.
There is a method: createTimesheetEntry that has sample code. I would have guessed that some parts of it probably rely on internal API but so far I have not found anything. Seems to be all legit parts of the published RTC SDK.
Core method:
with: IWorkItemService workItemService
ITimeSheetEntry entry = workItemService.createTimeSheetEntry(projectArea);
and then
entry.setTimeSpent;
etc. etc.
If this is helpful please mark this answer accepted.
Thanks,
Arne
if looking at the published RTC SDK (setup cp. e.g. Ralph Schoon's Blog) and Java Searching for TimeSheet you can find that the com.ibm.team.rtc.reports.service.test has a class BaseRTCReportTest.
There is a method: createTimesheetEntry that has sample code. I would have guessed that some parts of it probably rely on internal API but so far I have not found anything. Seems to be all legit parts of the published RTC SDK.
Core method:
with: IWorkItemService workItemService
ITimeSheetEntry entry = workItemService.createTimeSheetEntry(projectArea);
and then
entry.setTimeSpent;
etc. etc.
If this is helpful please mark this answer accepted.
Thanks,
Arne