Jazz Custom Attributes
![]()
I created a custom attribute to hold a particular string for work items, and im having some trouble receiving this attribute. Here is the code for the retieval of the work item.
I'm getting the following stack trace on the line value = workItem.getValue(pv);
Any thoughts on this error? Thanks in advance. |
One answer
![]() Any thoughts on this error? Thanks in advance. There are two issues: a) Work Items support partial loading. When you load the work item, make sure that all its attributes are loaded, otherwise you might run into an assertion failure. The easiest way (loading everything) is to use IWorkItem.FULL_PROFILE when loading the work item using IAuditableCommon.resolveAuditable(...) b) Telling from the stack trace, you are performing long-running operations that contact the server in the UI thread. This will also lead to an error being logged (although the code will work). Long-running operations in the UI thread freeze the UI and should be moved to a background thread/Job. -- Regards, Patrick RTC Work Item Component Lead |