fetch parent workItem details in java value provider in RTC
3 answers
No, the configuration is the configuration information in the process XML. You have to find and resolve the parent link/references as described here:
https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/
https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/
Comments
I have reffered this link before, As its mentioned to get references
IWorkItemServer workItemService = getService(IWorkItemServer.class);
IWorkItemReferences references = workItemService.resolveWorkItemReferences(workItem, null);
is this can be used in JAVA VALUE PROVIDER? But I see error on "getService" though I made sure that import is correct
Thanks,
Kavita
Operation participant is extended from "AbstractService" class So I feel it will work in participant but not in JAVA VALUE PROVIDER.
though I included "import com.ibm.team.repository.service.AbstractService;" in my provider but still shows error.
It would be great help if I get to know solution.
Thanks,
Kavita
Sorry, did nit realize you talked about value providers.
Please see: https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ for providers as examples.
You can use the getService() only if you extend the AbstractService. this is only available on the server. Since value providers need to run on the server as well as the client, you can mostly only use the common API and only what you can reach from the API you have. Please see the blog and examples above for more information.
Please see: https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ for providers as examples.
You can use the getService() only if you extend the AbstractService. this is only available on the server. Since value providers need to run on the server as well as the client, you can mostly only use the common API and only what you can reach from the API you have. Please see the blog and examples above for more information.