Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to enter time tracking values by API

Hi, does anybody know how to enter time tracking values by Java API?
Thanks!

RTC v.3.0.1

0 votes


Accepted answer

Permanent link
For anyone who searches for example, I created example code to access and modify the time tracking data for work items and published in this post: https://rsjazz.wordpress.com/2015/03/31/the-work-item-time-tracking-api/
Berthold Kröger selected this answer as the correct answer

1 vote


3 other answers

Permanent link
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.

0 votes

Comments

Hi Lauren, thank you for your answer but no, I was looking to maintain the time tracking values per weekday, not the accumulated value in attribute TimeSpent.

Hi Berthold,

Unfortunately, I don't understand what you mean.  Can you give an example? 

In the Web UI you can open the Time tracking tab in a task work item and enter time spent values for each day. I would like to do the same by a Java API program to avoid double entering that data because we get this information from the SAP system.
Unfortunately I was not able to upload a screenshot to demonstrate it.

Hi Berthold,
Thanks for clarifying!  I'm not sure how to input time tracking information.  Perhaps this post could help get you started: https://jazz.net/forum/questions/112097/rtc-java-api-how-to-get-time-code.


Permanent link
 Hi Berthold,
i have the same issue.
did you find some answer to your post???
well i want to update our Time Track by external *.csv file.

if you have an answer or find some solution ill be glad to see it.

Thanks
Gabi 

0 votes


Permanent link
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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941
× 411

Question asked: May 03 '13, 6:27 a.m.

Question was seen: 7,167 times

Last updated: Mar 31 '15, 10:42 a.m.

Confirmation Cancel Confirm