How Can I get childworkitems ,its type and current state from references.
I got the child references. I tried following code. Object data = operation.getOperationData(); // The action is save if (data instanceof ISaveParameter) { IWorkItem parentWorkItem = (IWorkItem) auditable; //Getting WorkItem service |
Accepted answer
Ralph Schoon (63.6k●3●36●46)
| answered Nov 19 '12, 8:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Kaushik,
I would suggest to read https://jazz.net/library/article/1000 carefully and maybe http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ because it talks about similar items. You need to use this.getService() to get services in participants and advisors. IRepositoryItemService reposervice = getService(IRepositoryItemService.class); Should get it. You probably have to add it to the prerequisites in the plugin.xml too. See the post mentioned above to understand what a prerequisite is. Kaushik Bhalerao selected this answer as the correct answer
|
One other answer
IWorkItemHandle ChildWIHandle = (IWorkItemHandle)
With this Child Workitem, you can get the Type and ID details. Comments
Kaushik Bhalerao
commented Nov 19 '12, 7:28 a.m.
Hi Muthukumar
Also am not getting "repositoryItemService" .
|
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.