It's all about the answers!

Ask a question

How to fetch details present in a workitem of different tabs


Chandan M B (11314184) | asked Jun 18 '15, 9:26 a.m.
Hi,
In a workitem i am able to fetch overview details .
Now i need to fetch approval tab details and link tab details.

How to do it using server side plugin?

Regards,
Chandan

One answer



permanent link
Viginesh Sankarararaman (1112) | answered Jun 18 '15, 10:07 a.m.
edited Jun 18 '15, 10:15 a.m.
I hope you're using the Plain Java API as explained by RS Jazz in his blog.

You can use createExtension for a small profile for a work item and pass IWorkItem.APPROVAL_DESCRIPTORS_PROPERTY as an argument

or

load FULL_PROFILE and directly get workitem.approvalDescriptor / approvals.

As for the Link section, I couldn't find any related property and posted the same question.sometime back. 

UPDATE:

List allAttributeHandles = workItemClient.findAttributes(projectArea, monitor);
for(Object s : allAttributeHandles)
System.out.println(s);
With this, you can see all the available attributes in your console. compare the display name with fields in every tab. You'll be able to get all the fields you need.

Comments
Chandan M B commented Jun 18 '15, 10:13 a.m.

HI,
I am using server side RTC extensions. Please provide if you have a code snippet . It will be more useful for me.!!


Viginesh Sankarararaman commented Jun 18 '15, 10:24 a.m.

Go through this link: 


He has explained it well with code snippets..

Your answer


Register or 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.