Unanswered when bug is resolved it should auto assigned to QA person

  • Monday, April 12, 2010 1:48 PM
     
     

    hello everyone,


    i have a task that ,

    When a Bug is Resolved it should auto Assigned to My QA Person  , it can ce created b anybody but as its states become resolved it should automatically assiged to QA.

    Any Help?

All Replies

  • Monday, April 12, 2010 3:49 PM
     
     

    So the easiest way to do this is to create a QA group (unless there is only one QA person then this is kind of easy) and add a rule to the state field that says When State = "Resolved" AssignedTo = [qa person name or group name]. That's it. It's easiest to set it through the Process Template Editor but if you need the exact XML let me know and I'll go work it up for you.

     


    Jeff Levinson | Team System MVP
  • Tuesday, April 13, 2010 5:45 AM
     
     

    Thanks Jeff ,

    i would prefer using XML because i have already done so any customization using witexport and witimport ,  i have try doing it using XML ,

    i changed the Portion :

    <TRANSITION from="Active" to="Resolved">
              <REASONS>
                <DEFAULTREASON value="Fixed" />
                <REASON value="Deferred" />
                <REASON value="Duplicate" />
                <REASON value="As Designed" />
                <REASON value="Unable to Reproduce" />
                <REASON value="Obsolete" />
              </REASONS>
              <FIELDS>
                <FIELD refname="System.AssignedTo">
                 <COPY from="Filed" Filed ="System.CreatedBy" />
                </FIELD>

     

    To

    <TRANSITION from="Active" to="Resolved">
              <REASONS>
                <DEFAULTREASON value="Fixed" />
                <REASON value="Deferred" />
                <REASON value="Duplicate" />
                <REASON value="As Designed" />
                <REASON value="Unable to Reproduce" />
                <REASON value="Obsolete" />
              </REASONS>
              <FIELDS>
                <FIELD refname="System.AssignedTo">
                 <COPY from="Filed" Value="[Project]\Tester" />
                </FIELD>

     

    and it imported Fine but when i Change the State from Active to Resolved , it gived me an Error :

    Error Tf20015 : the Filed "Assignerd To" Contains a valye that is not in the List of Supported Value.

    Thanks.

     

     

     

     

  • Tuesday, April 13, 2010 1:24 PM
     
     

    Ah. Do you have an account with the name Tester that's in the list of valid assigned to members? Just check to make sure that it's in the allowed values list of the Assigned To field and that the settings will yield a valid tester. The syntax is correct but it's possible this person (or group) isn't in the list of users in the AssignedTo field. Post the definition for your AssignedTo field and we'll take a look.

     


    Jeff Levinson | Team System MVP
  • Thursday, April 15, 2010 4:58 AM
     
     

    hi jeff,

    you have a right guess , i just missed to include that Group '[Project]\Tester] , in the Allowed value while Defining AssignedTo Filed , but when i Do include that Filed in Allowed Value and then import it then also i caught into a Problem , when i change the state from 'Active' to 'Resolved' , the Assigned to Filed is Auto Populated with 'Tester' , i mean it shows Tester in the Assigned to Filed , instead of Name of the tester  ( which is in the '[Project]\Tester' group , then i change Template Slightly and in the Value i manualy give My Tester Name and then import it , this time all goes well. means i achieve what i want ... now my templat is like below -

    <TRANSITION from="Active" to="Resolved">
              <REASONS>
                <DEFAULTREASON value="Fixed" />
                <REASON value="Deferred" />
                <REASON value="Duplicate" />
                <REASON value="As Designed" />
                <REASON value="Unable to Reproduce" />
                <REASON value="Obsolete" />
              </REASONS>
              <FIELDS>
                <FIELD refname="System.AssignedTo">
                 <COPY from="Value" Value = "<My Tester Name">
    <FIELD>

    with this template it run fine , but when  i replace "<My Tester Name" with "[Project]\Tester" , it shows only Tester in AssignedTo Filed .. , i dont know why ??

    But anyways , i achielve what i want.

     

     

     

     

     

  • Tuesday, April 27, 2010 2:10 PM
     
     

    I am running into the same issue.  I want to have bugs assigned to a Tester group when they are moved to Resolved. I created a TFS group for my project (Demo) called Testers. The XML for the assignedto rule is the following.

    <FieldReference refname="System.AssignedTo">
      <COPY from="value" value="[project]\Testers" />
    </FieldReference>

    This all works except that I get the error TF20015: The field "Assigned To" contains value "[Demo]\Testers" is not in the list of supported values.

    I added [project]\Testers as AllowedValues to the field AssignedTo

    <ListRule filteritems="excludegroups">
      <LISTITEM value="[project]\Contributors" />
      <LISTITEM value="[project]\Testers" />
    </ListRule>

    Are the groups being expanded first and therefore group names are not valid in the Assigned To field????

     

     

  • Tuesday, April 27, 2010 2:14 PM
     
     
    Actually just found the answer.  I unchecked "Exclude Groups" and now it works. One minor problem left is that [project]\Contributors and [project]Testers show up in the list of allowed values.  I really want to exclude the group [project]\Contributors but I can live with that.
  • Thursday, April 29, 2010 11:56 PM
     
      Has Code

    Brad,

    You can add arbitrary values to AssignedTo field's AllowedValues list (See value added for "Test Team").

       <FIELD reportable="dimension" type="String" name="Assigned To" refname="System.AssignedTo">
        <ALLOWEDVALUES filteritems="excludegroups">
         <LISTITEM value="Test Team" />
         <LISTITEM value="[project]\Project Administrators" />
         <LISTITEM value="[project]\Contributors" />
         <LISTITEM value="[project]\Readers" />
         <LISTITEM value="[project]\Build Services" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="Triage Team" />
       </FIELD>

    In your state transition you would have the following...:

    <FieldReference refname="System.AssignedTo">
     <COPY from="value" value="Test Team" />
    </FieldReference>

    This way, the group names are still excluded ([Projects]\contributors) and you have a new vbalue of "Test Team" that can be used to assign bugs to your Test team. You then change your Queries accordingly to list all bugs assigned to "Test Team", etc...

    J-F