How to fetch 'Created date' attribute of work item in RTC using java
![](http://jazz.net/_images/myphoto/aa3c892db3c3217498d9ce65e641c002.jpg)
2 answers
![](http://jazz.net/_images/myphoto/aa3c892db3c3217498d9ce65e641c002.jpg)
https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ explains how to work with work item attributes, how to find the ID and what to do with it.
There are internal constants as well for the ID's e.g. IWorkItem.CREATION_DATE_PROPERTY
Comments
![](http://jazz.net/_images/myphoto/aa3c892db3c3217498d9ce65e641c002.jpg)
Hi ,
When I am trying to fetch the value of the attribute described above, I am getting below error
"Exception in thread "main" java.lang.IllegalStateException: Attempting to get unset feature: CreationDate"
Can you please assist on the same?
![](http://jazz.net/_images/myphoto/e5e63d5878217b64611c1df9401b7cd3.jpg)
Won't speculate on invisible code. Use "creationDate" as attribute ID.
![](http://jazz.net/_images/myphoto/aa3c892db3c3217498d9ce65e641c002.jpg)
Hi Ralph,
Thanks for your response.
I have been trying to get creationDate using
IAttribute creationDate=workItemClient.findAttribute(projectArea,IWorkItem.CREATION_DATE_PROPERTY, monitor);
System.out.println(workItem.getValue(creationDate));
Still getting exception as
Attempting to get unset feature: CreationDate
Please assist.