RTC WorkItem Customisation
I have created a Workitem type called Project Goal which has some of the parameters (attributes) which are the unit of measurement values for my project, If I have some field in WI type called Defect and I want to sum the same from all defects and compare with Project Goal workitem's one of the field, what is the best way to achieve it?
Eg: In Rational ClearQuest, We used to write hooks to filter the Defect type record type and compare with some other field, can we achieve this kind of functionality?
Regards,
-Kiran
Eg: In Rational ClearQuest, We used to write hooks to filter the Defect type record type and compare with some other field, can we achieve this kind of functionality?
Regards,
-Kiran
2 answers
how are the defects related to the Project Goal?
if they were children, then an OperationParticipant server plugin would be an easy way to do this.
on save of a workitem, determine it is the parent Goal, or a child defect, and then find all the related defects and sum their total to the Goal object.
if they were children, then an OperationParticipant server plugin would be an easy way to do this.
on save of a workitem, determine it is the parent Goal, or a child defect, and then find all the related defects and sum their total to the Goal object.
Comments
ok.. then the OperationParticipant has a trickier job to do.
so, it sounds like there is a Single instance of Goal in a project space.
the participant can look for workitem saves which are NOT for a Goal workitem, then check if the sizing/consumed time is changing on the changing workitem, and if so, find the Goal for this project and update it.
so, it sounds like there is a Single instance of Goal in a project space.
the participant can look for workitem saves which are NOT for a Goal workitem, then check if the sizing/consumed time is changing on the changing workitem, and if so, find the Goal for this project and update it.