History of Work item Categories
Hi,
Is it possible to find the history of changes done to the Work item Categories in a project area?
Regards,
Sunita
|
Accepted answer
Even though the tool does not provide a way to see the history, that information seems to be there in the database.
If you really need someone to blame for the change ;-) and you are willing to write a script,
use this Java Client code:
//Retrieve the previous states of the ICategory cat
List<ICategoryHandle> history = repo.itemManager().fetchAllStateHandles(cat, null);
for (ICategoryHandle hisHandle : history) {
ICategory his = (ICategory) repo.itemManager().fetchCompleteState(hisHandle, null);
his.getModifiedBy()...
his.modified().toString()...
}
Sunita Dinakar selected this answer as the correct answer
Comments Hi Miguel, As per your suggestion, Do you think that Sunita is looking for History of a Attribute Type[Category] ? If Yes, she is not trying to get History of Category type of an Attribute. She needs to find the History of Work Item Categories from the Project Area tab. [Open Projectarea -> Work Item Categories tab]. you could see list of Categories created by Admins. Thanks Sudar Hi Sudar,
The code I provided is for retrieving the History of Work Item Categories from the Project Area tab. [Open Projectarea -> Work Item Categories tab].
Geoffrey Clemm
commented Oct 30 '15, 12:30 a.m.
| edited Oct 30 '15, 12:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Miguel is correct ... this function is available (as his code illustrates), but is not currently available in the GUI.
Hi Miguel, I have used your code snippet to get the History of changes done on the "Work Item Categories" tab in the Projectarea. I use Java Client APIs here, Can you help me how to retrieve the previous states of the ICategory Object ? and how to define the ProjectArea specifically here ? Thanks Sudar Hi Sudar.
I think you need to spend some time playing with the RTC Java Client API.
I would suggest to follow this article to get the IProjectArea object:
and go from there.
This article is also a good entry point
Hi Miguel, I was stuck with the logic how to get the list of changes applied to the specific Category. I just tried with the different flow. I got the result now :) Thank you so much. Sudar
Sunita Dinakar
commented Oct 30 '15, 3:11 p.m.
Hi Miguel and Geoffrey,
Thank you both for the help and support provided. Sudar was able to get the data using the code provided.
Regards,
Sunita
Sunita Dinakar
commented Oct 30 '15, 3:12 p.m.
Hi Miguel and Geoffrey,
Thank you both for the help and support provided. Sudar was able to get the data using the code provided.
Regards,
Sunita
showing 5 of 8
show 3 more comments
|
One other answer
The function is not available. Please have a look the explanation in https://jazz.net/forum/questions/177481/project-area-category-history-rtc-502
|
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.