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

Display sum of timecode hours using dojo script in customized attribute.

Hi There!!

I know this can be easily done with reporting, by my customer requirement is to show sum of hours booked on time code in time tracking tab in custom attributes in main tab/overview tab.

Can anyone please guide me how to fetch values of time-code in java scripti i tried workItem.getLabel("timecode") or workItem.getValue("timecode") but have no luck, is it even possible?. "timecode" id i found in process configuration source.

Also i have to fetch the sum of hours booked against those time-code.

Thanks in advance
Regards
Rhishi

0 votes



One answer

Permanent link
As far as I can tell, you can not access timecodes/timesheets using JavaScript. That data is associated to a work item using a link and you can not follow those with JavaScript. See: https://jazz.net/library/article/1093 Lab 5. You might be able to use Java:   https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/

1 vote

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
× 6,132

Question asked: Jun 12 '14, 10:07 a.m.

Question was seen: 4,341 times

Last updated: Jun 12 '14, 11:05 a.m.

Confirmation Cancel Confirm