Welcome to Team System Rocks Sign in | Join | Help
in
Home Blogs Forums Photos Tutorials Files Roller
Notion Solutions Main Site

WorkItem on Build fail

Last post 08-06-2008, 9:27 AM by shai_rai. 3 replies.
Sort Posts: Previous
  •  08-02-2008, 4:31 AM

    WorkItem on Build fail

    Hi All,

    We are using LDAP Active Directory to connect to TFS server. I want a workitem to be assigned to my reporting authority when the Team Build fails. As per one of Blogs(http://sstjean.blogspot.com/2006/10/tfs-team-build-on-failed-build-assign.html), we need to assign the LastName, FirstName to Assigned To property. Since we are making LDAP to connect to TFS Server How should we assign the value for Assigned To property. I tried as follows but it is not working.Sad [:(]

    <WorkItemFieldValues>Assigned To=myDomain\myname;Symptom=build break;Steps To Reproduce=Start the build using Team Build</WorkItemFieldValues>

    Any help is appreciatred.

    Regards,

    Habeebuddin.

     

  •  08-04-2008, 12:26 PM

    Re: WorkItem on Build fail

    Hello,

    Why you add "myDomain" to the propery?

    And be sure that "myname" is a valid user name.

    Let me know if you still having problems.


    Developer & Senior Consultant
    http://blogs.microsoft.co.il/blogs/shair
  •  08-06-2008, 12:47 AM

    Re: WorkItem on Build fail

    Hi,

    Thanks for reply. I have removed myDomain and still Workitem is not getting assigned to the user.

    I have written the WorkItemFieldValues as follows

    <WorkItemFieldValues>Assigned To=habeebuddin.mohammed;Symptom=build break;Steps To Reproduce=Start the build using Team Build</WorkItemFieldValues>

    Here I am pasting the part of Buildlog that is showing the error.

    Done building project "TFSBuild.proj" -- FAILED.

    Build FAILED.

    MSBUILD : warning : TF42095: A work item could not be created for build failure. An invalid value was passed for field Assigned To.

    Default.aspx.cs(19,23): error CS1002: ; expected

    1 Warning(s)

    1 Error(s)

    Time Elapsed 00:01:20.22

    Is this necessary for the user, whose name is given in Assigned To field to have "create workitem" permission?  Is the workitem assigned to the given user on behalf of Build service account? If it is so, then do we need to configure the BuidlService account to have Create Workitem permission?

    Any help is appreciated.

    Regards,

    Habeeb.

  •  08-06-2008, 9:27 AM

    Re: WorkItem on Build fail

    Hello Habeeb,

    The Assign To value is not the one who creates the Workitem so you don't need  "create workitem" permission".

    Did you make a special changes in the WorkItem definition? change some <TRANSITION >?

    There is special Assign To rules in the WorkItem?

    "habeebuddin.mohammed" is how the user shows inside the Team System?

     

    Thanks


    Developer & Senior Consultant
    http://blogs.microsoft.co.il/blogs/shair
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems