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

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

0 votes


Accepted answer

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

0 votes

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].

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

 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

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

Permanent link
The function is not available. Please have a look the explanation in https://jazz.net/forum/questions/177481/project-area-category-history-rtc-502

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
× 6,118

Question asked: Oct 27 '15, 1:40 p.m.

Question was seen: 2,848 times

Last updated: Apr 03 '19, 12:07 a.m.

Confirmation Cancel Confirm