I am just getting started with QC 10 and having some trouble getting up to speed on workflow customization. Can anyone point me in the direction of a good tutorial on this?
My main question is this: We have two fields (impact and severity) that are valued 1-5. The sum of the impact and severity becomes the Priority (2 - 10, 10 being highest). I figured that with the scripting I would be able to auto calculate the priority based on the impact and severity settings, but I cant figure out how to do this in QC. Can anyone give me a hint?
You get some workflow examples in the Administrator Guide. One example of particular interest for your case would be "Changing One Field Based on Another Field". It shows you what event to process (Defect_FieldChange), how to retrieve the value for a field and how to set the value for another field.
Your case probably is more complicated than that example as I assume that the list of values for all three fields (impact,severity and priority) are not pure numbers, but something like "1 - Low". Then you'd have to parse the values for the impact and severity fields (use the Split VBScript function), and then parse the list for the priority field to retrieve the actual item value based on the number you compute.
As a side note, I must say that it may not be such a good idea to determine the priority of a defect based on its impact and severity only. Usually, the priority (i.e.which problems need to be corrected first) is joinly determined by the stakeholders, the QA team and the development team. All 3 may have constraints (for instance, the availability of a developer to implement a correction) that are not related to the impact and severity of a defect.