Welcome to the Jazz Community Forum
How can I get the epic id and Pv id using feature id and story related to that work item. Please help if there is any API for the same

I have some feature ids and i need to get some data related to that. like epic id, pv id, story planned for and many other things. i have found some of the data using this code IWorkItem workItem = workItemClient.findWorkItemById(id, IWorkItem.FULL_PROFILE, monitor);
Accepted answer

Start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/
There are a lot of code examples including your snippet in that blog. I created the blog because the answers don't fit here. You need the link API - search the blog for link api, and you need the work item attribute API so search for work item attribute.
Comments

Can you please help me to find only one like how can I find the epic Id, rest i will find out. Thanks for your quick response

In short, you
- iterate the links of the item (that is linked to the epic) using the link type you use for that
- Once you found the other end (the linked item) you resolve the handle and look up the ID
If you are unable to spend the time you need to even read the introduction and the essential links ( especially https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ ) you will not be able to do this.From experience with other such questions you will ask more and more questions that are already explained in the links that I asked you to follow.

ok tysm Ralph.