Rally Software

 View Only
  • 1.  Rally API Project ID Identification

    Posted Oct 09, 2019 02:49 PM
    Hello!

    I want to create an API interface to pull Epics, Sub-Epics, Features, and User Stories from a specific Workspace and Project.
    Notes:
    1. I have access to multiple workspaces for my org
    2. I have access to our organizations entire backlog space (100+)

    Question:
    1. How do you identify the 'Project' ID/Name e.g. ?  'xxxxxxxxxxxxxxx'
    https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature?project=https://rally1.rallydev.com/slm/webservice/v2.0/project/xxxxxxxxxxxxxxx&query=&fetch=true&start=1&pagesize=1000

    thank you!

    ------------------------------
    Brett
    ------------------------------


  • 2.  RE: Rally API Project ID Identification
    Best Answer

    Broadcom Employee
    Posted Oct 09, 2019 02:57 PM
    Hi Brett,

    You can gather that information from the ObjectID attribute returned from a project query
    https://rally1.rallydev.com/slm/webservice/v2.0/project?query=(Name = "Sample Project")&fetch=ObjectID

    Results in a response as follows:
    {
      "QueryResult": {
        "Errors": [], 
        "PageSize": 20, 
        "Results": [
          {
            "ObjectID": 198278166556, 
            "_objectVersion": "2", 
            "_rallyAPIMajor": "2", 
            "_rallyAPIMinor": "0", 
            "_ref": "https://rally1.rallydev.com/slm/webservice/v2.0/project/198278166556", 
            "_refObjectName": "Sample Project", 
            "_refObjectUUID": "75b17c81-d104-4b56-8ca8-1f9c61387d80", 
            "_type": "Project"
          }
        ], 
        "StartIndex": 1, 
        "TotalResultCount": 1, 
        "Warnings": [], 
        "_rallyAPIMajor": "2", 
        "_rallyAPIMinor": "0"
      }
    }



  • 3.  RE: Rally API Project ID Identification

    Broadcom Employee
    Posted Oct 18, 2019 10:10 AM
    Hi Brett,

    Firstly, I am going to have to ask what you are doing with the information once you have got it. The reason for asking this is that your assumption is that ALL the artefacts reside in the same project. "Usually", I get asked for the tree of information under a particular portfolio item regardless of where they are in the project hierarchy. This latter scenario is more common when you have different teams working on stuff together.

    I have done a number of apps that get an item and then all the descendants. An example of such is here: https://github.com/nikantonelli/PortfolioItemTimeLine/tree/With-Stories

    ------------------------------
    Nik
    Rally Sales Engineer
    Rally Software
    ------------------------------