Rally Software

Expand all | Collapse all

How to authenticate the user, then scan through all projects in the company and pull the projects associated with that user?

  • 1.  How to authenticate the user, then scan through all projects in the company and pull the projects associated with that user?

    Posted Apr 09, 2014 04:30 PM
    I'm new to programming and this is critical for my survival. Thank you for the help in advance!


  • 2.  Re: How to authenticate the user, then scan through all projects in the company and pull the projects associated with that user?
    Best Answer

    Posted May 01, 2014 05:35 PM
    Hi Timur, here is an example in C# in a Support Dev's github repo:
    https://github.com/nmusaelian-rally/rally-dot-net-rest-apps

    This app prints out all workspaces and their projects in the subscription.

    There is an example that does the same thing using 1.43 of WS API, but it is there only for a comparison, to show the refactoring path to use v2.0. Don't use the one that works with 1.43, but please use the one that works with v2.0. Here is the direct link:

    https://github.com/nmusaelian-rally/rally-dot-net-rest-apps/blob/master/getWorkspacesAndProjectsInSub.cs

    This code is based on Rally REST Toolkit for .NET:
    https://github.com/RallyTools/RallyRestToolkitFor.NET

    The same caveats that apply to Ruby toolkit apply to this one as well.
    Rally Software does not actively maintain this toolkit. If you have a question or problem, we recommend posting it to Stack Overflow: http://stackoverflow.com/questions/ask?tags=rally

    My examples are also not supported by Rally. It is outside of support's scope to write and debug custom code, so these example comes as is.

    Please check the object model if you run into difficulties to double check the names of fields on objects, and what fields exist on what object.