James Mann's Blog

The blog of James Mann

Part 1/2: Integrating a SharePoint workflow with TFS / eScrum - Creating the product

As part of a project tracking workflow we have various points in the lifecycle of a project where we want to poke data into TFS, and have that data exposed through eScrum.

In particular, we need to:

  1. Create a new eScrum Product (at the inception of the project)
  2. Create eScrum Product Backlog items (on a weekly cycle)

After a bit of digging and dissassembling it turns out that it is not that hard to do. The first of the two above tasks implementation is as follows:(note that the eScrumRootAreaPathURI is the URI of the eScrum Team Project - you can find this URI in the team explorer in VS - it will look something like vstfs:///Classification/TeamProject/a1bac9db-c321-4fe6-8a12-fa19b4c2abab):


public static void CreateEScrumProduct(string name, string eScrumRootAreaPathURI, string tfsurl, string username, string password, string host)

    NetworkCredential account = new NetworkCredential(username, password, host);
    TeamFoundationServer server = new TeamFoundationServer(tfsurl, account);
    server.Authenticate();     /**
     * first the area path for the product must be created in the eScrum team project.
    ICommonStructureService ics = (ICommonStructureService)server.GetService(typeof(ICommonStructureService));
    NodeInfo[] ni = ics.ListStructures(eScrumRootAreaPathURI);

    foreach (NodeInfo n in ni)
        if (n.StructureType == "ProjectModelHierarchy")
            ics.CreateNode(name, n.Uri);

     * now a new eScrum product details work item must be created referencing the above
     * area path. note that this can fail due to the tfs warehouse not refreshing
     * so it is brute forced until a better way is apparent.
    Thread t = new Thread(delegate()
        bool cont = true;
        while (cont)
                WorkItemStore store = new WorkItemStore(server);
                WorkItem item = new WorkItem(store.Projects["Escrum"].WorkItemTypes["eScrum Product Details"]);
                item.Title = name;
                item.Fields["Area Path"].Value = @"Escrum\" + name;
                item.Fields["Assigned To"].Value = "Escrum Team";

                cont = false;

            catch (Exception ex)
                Trace.WriteLine("failed saving... attempting again in 1000ms");
                cont = true;
Technorati Tags: ,,,

Comments (59) -

  • zxevil163

    3/16/2008 10:36:44 AM |

    A8fTKn Hi from Russia!

  • zxevil163

    3/16/2008 10:37:59 AM |

    hOuLYm Hi from Russia!

  • zxevil163

    3/16/2008 10:38:17 AM |

    eKkIEM Hi from Russia!

  • zxevil163

    3/16/2008 10:38:29 AM |

    oDvslf Hi from Russia!

  • zxevil163

    3/16/2008 10:38:47 AM |

    XQ9Zf4 Hi from Russia!

  • zxevil163

    3/16/2008 10:41:33 AM |

    lsoVTk Hi from Russia!

  • zxevil163

    3/16/2008 10:43:22 AM |

    ENZTOE Hi from Russia!

  • acne no more review

    9/18/2013 2:05:33 PM |

    I used to be very happy to find this internet-site.I wanted to thanks to your time for this excellent read!! I definitely having fun with each little little bit of it and I have you bookmarked to check out new stuff you weblog post.

  • att uverse

    12/12/2013 7:41:03 PM |

    I believe that is one of the so much vital information for me. And i'm satisfied reading your article. However wanna remark on few common things, The site taste is wonderful, the articles is in reality nice : D. Excellent activity, cheers

  • Elsie Heuberger

    1/18/2014 4:44:17 PM |

    People suffering with zits will oftentimes want to pop their infected pores. If you do decide to pop them, make sure that your hands and nails are clean and sanitized to avoid causing your skin further damage by adding more bacteria to the open pore.

  • Get Rid Of Acne

    4/6/2014 12:08:07 PM |

    Some of your images are broken

  • Get Rid Of Acne

    4/6/2014 12:27:48 PM |

    Some of your images are broken

  • Roderick Jannusch

    4/12/2014 11:13:16 AM |

    I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

  • Mariana Osberg

    4/12/2014 11:22:06 AM |

    If you're still on the fence: grab your favorite earphones, head down to a Best Buy and ask to plug them into a Zune then an iPod and see which one sounds better to you, and which interface makes you smile more. Then you'll know which is right for you.

  • Kami Jolivette

    4/12/2014 11:24:53 AM |

    Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It's very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.

  • Oren Emison

    4/12/2014 11:27:35 AM |

    Hands down, Apple's app store wins by a mile. It's a huge selection of all sorts of apps vs a rather sad selection of a handful for Zune. Microsoft has plans, especially in the realm of games, but I'm not sure I'd want to bet on the future if this aspect is important to you. The iPod is a much better choice in that case.

  • Ashlyn Kratowicz

    4/12/2014 11:31:24 AM |

    The Zune concentrates on being a Portable Media Player. Not a web browser. Not a game machine. Maybe in the future it'll do even better in those areas, but for now it's a fantastic way to organize and listen to your music and videos, and is without peer in that regard. The iPod's strengths are its web browsing and apps. If those sound more compelling, perhaps it is your best choice.

  • Alphonso Labeau

    4/12/2014 11:37:18 AM |

    Hands down, Apple's app store wins by a mile. It's a huge selection of all sorts of apps vs a rather sad selection of a handful for Zune. Microsoft has plans, especially in the realm of games, but I'm not sure I'd want to bet on the future if this aspect is important to you. The iPod is a much better choice in that case.

  • Tonie Salak

    5/13/2014 2:11:55 PM |

    Hi there! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no back up. Do you have any methods to prevent hackers?

  • Gus Primo

    9/17/2014 9:27:40 PM |

    Great task I like your design! Would genuinely like to right here your feedback on my website! I am also searching for someone to assist me make websites!

  • Ardith Mussenden

    11/2/2014 3:36:55 PM |

    Hey very cool odiassd site!! Man .. Excellent .. Amazing .. I will bookmark your blog and take the feeds also…I’m happy to find numerous useful info here in the post, we need work out more strategies in this regard, thanks for sharing. . . . . ….

  • 123afvalcontainer

    1/3/2015 4:49:17 PM |

    Wil je een <a href=”http://www.123afvalcontainer.nl”>afvalcontainer huren</a>? dan zit je hier goed. Snel, goed en goedkoop!

  • web index

    1/13/2015 1:34:09 PM |

    The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.

  • sex

    1/13/2015 4:09:32 PM |


  • directory

    1/13/2015 9:22:10 PM |

    It’s hard to find knowledgeable people on this topic, but you sound like you know what you’re talking about! Thanks

  • pills

    1/15/2015 11:03:55 PM |


  • fruit slots

    1/18/2015 10:01:17 PM |


  • make money online

    1/19/2015 8:10:54 PM |


  • Shondra Puello

    1/21/2015 8:43:34 PM |

    I am often to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your site and keep checking for new information.

  • http://fishinglovers.net

    1/29/2015 3:31:55 PM |

    I cannot thank you enough for the article.Much thanks again. Really Cool.

  • Leroy Tywon Flowers

    2/5/2015 5:44:41 PM |

    Woah! I am truly loving the actual template/theme of the blog. It as straightforward, yet successful. A lots of times it is rather hard to get that ideal balance among usability and appearance. I should say you have done the awesome job with this particular. In add-on, the weblog loads super fast for myself on Stainless. Excellent Website!

  • life ionizers

    2/7/2015 1:54:07 PM |

    Thanks again for the blog post.Really thank you! Will read on...

  • п»їOur Muay Thai

    2/9/2015 6:17:33 AM |

    Wow, great blog article.Really looking forward to read more. Really Cool.

  • Chicago Neighborhood guide

    2/10/2015 8:51:28 PM |

    Thanks so much for the blog article.Really looking forward to read more. Will read on

  • Aerial Sightseeing Tours In Key West

    2/17/2015 1:03:30 AM |

    This is one awesome blog article.Really thank you!

  • website building business

    2/17/2015 8:13:30 PM |

    wow, awesome post. Really Cool.

  • alkaline water

    2/20/2015 12:52:44 PM |

    Thank you for your post.Really looking forward to read more. Really Cool.

  • web directory

    2/22/2015 12:07:34 AM |

    Spot on with this write-up, I truly think this website needs much more consideration. I’ll probably be again to read much more, thanks for that info.

  • Fishing Lover

    2/28/2015 4:03:01 AM |

    I think that you can do with some pics to drive the message home a bit,

  • online divorce

    3/2/2015 2:47:39 AM |

    Very informative post.Thanks Again. Much obliged.

  • transactional bulk sms

    3/3/2015 8:49:53 AM |

    Thanks-a-mundo for the article post.Really thank you! Really Great.

  • pos software for restaurant naples

    3/6/2015 9:59:16 AM |

    Fantastic blog post.Much thanks again. Great.

  • pos system naples

    3/6/2015 11:37:11 AM |

    Very informative blog post.Much thanks again. Really Great.

  • special k cannabis seeds

    3/6/2015 3:40:19 PM |

    I really enjoy the blog article.Much thanks again. Awesome.

  • My Website 2015

    3/15/2015 9:49:20 AM |

    Im thankful for the post.Much thanks again.

  • Gary Lazeo

    3/17/2015 1:01:27 PM |

    I truly appreciate this article.Really thank you! Really Cool.

  • sewa mobil murah di surabaya

    3/17/2015 4:32:46 PM |

    Thanks-a-mundo for the blog.Really thank you! Great.

  • web links

    4/4/2015 7:42:29 PM |

    This web site is really a walk-through for all of the info you wanted about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.

  • link building strategy

    5/21/2015 5:46:38 PM |

    Informative! Appealing! Quality! Belongings! Famous! Wonderful! Remarkable! Simply all the nice words put on this content! If you keep up the excellent work, thank you from the base of my heart as well as soul and also I will come browse through once again!

  • easy high pr backlinks

    5/23/2015 9:43:11 PM |

    Wow! Just remarkable! Thank you so much for the information discussed! I recognize you have put a lot of initiative into this as well as I wished to inform you just how thankful I am! There need to be a lot more blogs like this on the net! I will absolutely subscribe and also bookmark to your outstanding site! Hope you produced even more amazing stuff in the soon and I will come back as well as review it! Maintain the magnum opus!

  • free porn online

    6/4/2015 10:37:13 PM |

    Very good article. I certainly appreciate this website. Stick with it!

  • natural big tits

    6/26/2015 9:31:13 AM |

    Thanks a lot for the blog article.Much thanks again. Keep writing.

  • web blog

    6/28/2015 2:00:11 PM |

    Would you be interested in exchanging links?

  • mansion88

    7/1/2015 10:47:24 PM |

    I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you have hit the nail on the head. Your idea is outstanding; the issue is something that not enough people are speaking intelligently about. I am very happy that I stumbled across this in my search for something relating to this.

  • web directory

    7/13/2015 10:51:29 AM |

    Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!

  • internet directory

    8/12/2015 8:04:48 PM |

    The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.

  • Homepage

    8/13/2015 12:40:55 AM |

    I simply want to mention I am beginner to blogging and really savored this web site. Almost certainly I’m going to bookmark your site . You surely come with fantastic article content. With thanks for revealing your web-site.

  • directory

    9/5/2015 11:16:23 PM |

    After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think.

  • medyumlar

    9/7/2015 6:27:45 PM |

    you have a great blog here! would you like to make some invite posts on my blog?

  • web links

    9/30/2015 4:53:48 PM |

    Would you be interested in exchanging links?

  • cosmetic surgeon

    10/2/2015 5:48:19 PM |

    You should take part in a contest for one of the best blogs on the web. I will recommend this site!

  • forex trading strategy

    10/4/2015 9:48:36 AM |

    When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!