Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
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.

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

0 votes


Permanent link
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
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.

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

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,935

Question asked: Jul 28 '09, 8:26 p.m.

Question was seen: 6,357 times

Last updated: Jul 28 '09, 8:26 p.m.

Confirmation Cancel Confirm