Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

fetch parent workItem details in java value provider in RTC

Hi  All,

 I have created java value provider, which will fecth current Iteration. And also want to fetch few details from parent workItem.

I have seen configuration.getChild  will it give me the parent workItem?

Thanks,

Kavita

0 votes



3 answers

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

0 votes

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


Permanent link

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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,949

Question asked: Jan 26 '15, 6:55 a.m.

Question was seen: 3,945 times

Last updated: Jan 26 '15, 11:01 a.m.

Confirmation Cancel Confirm