It's all about the answers!

Ask a question

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


Rhishikesh Patil (1311827) | asked Jun 12 '14, 10:07 a.m.
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

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Jun 12 '14, 11:05 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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/

Your answer


Register or 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.