It's all about the answers!

Ask a question

[closed] Why IWorkItem.SMALL_PROFILE fetching all properties related to Workitem?


ast java (45538) | asked Apr 28 '16, 3:08 a.m.
closed May 17 '16, 5:32 a.m. by Ralph Schoon (60.7k33643)
 Hi All,

I am trying to fetch the workitem by passing the id, profile and monitor as below.

workitemClient.findWorkItemById(id, IWorkItem.SMALL_PROFILE, monitor);

As per the documentation the IWorkItem.SMALL_PROFILE should fetch only the below properties.

"SMALL_PROFILE: PROJECT_AREA_PROPERTY, ID_PROPERTY, TYPE_PROPERTY, SUMMARY_PROPERTY, OWNER_PROPERTY "

But the result of the above code is returning me the workitem which contains all the properties which is supported for FULL_PROFILE.

Ex: STATE_PROPERTY, PRIORITY_PROPERTY, SEVERITY_PROPERTY, CREATOR_PROPERTY, WORKFLOW_SURROGATE_PROPERTY, DESCRIPTION_PROPERTY ..........

Why am I getting these all properties? or do i miss something?

Please let me know the solution for this.

Thanks in advance.


The question has been closed for the following reason: "Duplicate Question" by rschoon May 17 '16, 5:32 a.m.