Timesheet not getting refrenced by WorkItemEndPoints.WORK_TIME
I am using Java api to get the Timesheet data . Below is my code snippet
IWorkItemReferences references = workingCopy.getReferences();
List <IReference> timesheets = references.getReferences(WorkItemEndPoints.WORK_TIME);
References is always yielding null , i.e List timesheets is always null for all the workitems . Am I missing some configuration for Timesheets , which is why is failing to get reference from workItem , or something else ?
IWorkItemReferences references = workingCopy.getReferences();
List <IReference> timesheets = references.getReferences(WorkItemEndPoints.WORK_TIME);
References is always yielding null , i.e List timesheets is always null for all the workitems . Am I missing some configuration for Timesheets , which is why is failing to get reference from workItem , or something else ?
Accepted answer
My API explained here https://rsjazz.wordpress.com/2015/03/31/the-work-item-time-tracking-api/ worked for me.