Answered How to create workitems/bugs in tfs in linux?

  • Friday, January 25, 2013 10:08 AM
     
     

    As titled. And I got some posts on the almost same question, but all of them are in windows env. How about on Linux? Both of tfs api and command line are ok for me.

    Any help is appreciated. 


    • Edited by pcdevelop Friday, January 25, 2013 10:09 AM
    • Moved by Vicky Song Monday, January 28, 2013 6:11 AM
    •  

All Replies

  • Monday, January 28, 2013 6:10 AM
     
     

    Hi,

    I am moving your issue to the Team Foundation Server - Eclipse and Cross Platform forum so that you can get better support there.

    Thanks.


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Monday, January 28, 2013 3:22 PM
     
     Answered

    Hi,

    You can use the Java SDK, if you check the snippet samples, there is a snippet called CreateWorkitem that demonstrates this.

    Please let me know if you need any help using the SDK.

    Thanks

    Mireille

  • Monday, February 04, 2013 6:47 AM
     
     

    Hi Hanna,

        I'm wondering whether tf command line can help create workitem/bugs for us. I installed tf tool on linux, but it seems that it can't do this job. Does tfpt work with linux env, and can create workitems/bugs? 


    • Edited by pcdevelop Monday, February 04, 2013 6:48 AM
    •  
  • Monday, February 04, 2013 8:33 AM
     
     

    Now, I'm trying to use tfpt to create create workitem via following command, but it failed with "Unknown field: Title" .

    tfpt.exe workitem /new "Cloud"\Bug /collection:http://tfs:8080/tfs/tpcollection /fields:"Title=tfpttest;Assigned To=sam"

    While I can create bugs in Team Explorer successfully.  Anything wrong about above command? Where can I find all the fields about creating a bug? Thanks a lot!

  • Monday, February 04, 2013 2:59 PM
     
     

    Hi,

    The TEE TF command line does not support any work item commands. tfpt does not work on Linux.

    Thanks

    Mireille

  • Monday, February 04, 2013 3:17 PM
    Owner
     
     

    I'm afraid that we do not have a command line to create work items from Linux.  You can do this via the TFS SDK for Java if you wanted to do something programmatically.

    There is example code in the SDK download if you wanted to take a look.

    Let me know how you get on.

    Thanks,

    Martin.


    http://www.woodwardweb.com

  • Monday, February 04, 2013 3:18 PM
    Owner
     
     

    Hey - if you still need help on the tfpt.exe question let me know and I can send it over to the power tools forum to get someone to help there.

    Many thanks,

    Martin.


    http://www.woodwardweb.com

  • Tuesday, February 05, 2013 1:06 AM
     
     

    Now I got another error:  TF237124: Work Item is not ready to save. Can you help me on this? Thanks.

    The command I ran is: tfpt.exe workitem /new "Cloud"\Bug /collection:http://tfs:8080/tfs/mycollection /fields:"System.Title=tfpttest;System.AssignedTo='Sam';System.Description='Good Tool'"

    Did I miss some required parameters?


    • Edited by pcdevelop Tuesday, February 05, 2013 1:13 AM
    • Edited by pcdevelop Tuesday, February 05, 2013 1:14 AM
    • Edited by pcdevelop Tuesday, February 05, 2013 2:32 AM
    • Edited by pcdevelop Tuesday, February 05, 2013 2:37 AM
    •