Problem in retrieving creator and creation date attributes
Hi,
I am trying to retrieve the creator and creation date from a work item. Although, these parameters are set, I am getting the following exception upon getCreator() method call, java.lang.IllegalStateException: Attempting to get unset feature: Creator Is there anything I am missing that is necessary to access these fields. I am able to fetch owner and other attributes from a workitem. Any kind of help is appreciated. Thanks, Abhishek |
2 answers
I am trying to retrieve the creator and creation date from a work You have to make sure that the work item is resolved with a profile that contains the attributes, otherwise the exception you are seeing will be thrown when accessing the attribute values. Use e.g. auditableClient.resolveAuditable(handle, IWorkItem.FULL_PROFILE, monitor) -- Regards, Patrick Jazz Work Item Team |
Thanks Patrick.
I was using SMALL profile. Changing it to FULL profile worked. Thanks for your input. I am trying to retrieve the creator and creation date from a work You have to make sure that the work item is resolved with a profile that contains the attributes, otherwise the exception you are seeing will be thrown when accessing the attribute values. Use e.g. auditableClient.resolveAuditable(handle, IWorkItem.FULL_PROFILE, monitor) -- Regards, Patrick Jazz Work Item Team |
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.