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
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
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/