Restrict number of hours to be entered through Time tracking tab RTC
Hi,
I want to develop a operation adviser plugin which will restrict number of hours to be entered on
Saturday and Sunday through Time tracking tab.
how to get the time tracking entry for particular day? as I want to implement below precondition. please let me know is it possible to get the Day of week from time tracking tab?
<precondition description="The work items can be saved if and only if the Time Tracking value is equal to 2 or greater than 2." id="net.atos.ssc.time.tracking.operationAdvisor" name="Time Tracking of Work Item">
<Day_of_week_to_restrict= “Saturday”, “Sunday”>
</precondition>
One answer
This is the time tracking API as far as I know it: https://rsjazz.wordpress.com/2015/03/31/the-work-item-time-tracking-api/
You will have to look at the java simple date format tooling to figure the day.