Rally Software

 View Only
  • 1.  How to read the list of projects from workspace object id.

    Posted Mar 13, 2020 10:44 AM
    I do see the following call which returns list of projects associated with workspace id.

    https://rally1.rallydev.com/slm/pjt/tree.sp?withUUIDs=true&workspaceOid=XXXXXX

    But using RallyRestApi I was not able to form this call. please update us how to achieve this.




    ------------------------------
    Atul
    ------------------------------


  • 2.  RE: How to read the list of projects from workspace object id.

    Broadcom Employee
    Posted Mar 13, 2020 11:13 AM
    Hi Atul,

    The RestAPI calls are listed in the WSAPI documentation. There are other calls that are made by our UI to specific endpoints. These are not publicly available in documentation.

    You do not mention what programming language you are using. I work mainly with Javascript and produced a custom app that can traverse the project hierarchy. It may give you some clues on how to proceed: https://github.com/nikantonelli/ProjectTree

    If you can give us more of an idea of what you want to achieve, and how, we may be able to give you some other pointers.

    ------------------------------
    Nik
    Ask me a question, I'm All Ears!
    Rally Sales Engineer
    Rally Software
    ------------------------------



  • 3.  RE: How to read the list of projects from workspace object id.

    Posted Mar 14, 2020 09:03 PM
    I was using java.. but i am good  with javascript  too. 

    I would like view the list of available project under the workspaceOid. fore.g under the organization. how may programs or projects are  available. Once I select the top level project I should be able fetch all the childrens project. I do need to get something like following response. 


    1. [{oid: 41464237616, name: "Cornerstone 3.0", uuid: "5301ff4f-8640-46ad-8e9a-842504c5cbfc",…},…]
      1. 0: {oid: 41464237616, name: "Cornerstone 3.0", uuid: "5301ff4f-8640-46ad-8e9a-842504c5cbfc",…}
        1. oid: 41464237616
        2. name: "Cornerstone 3.0"
        3. uuid: "5301ff4f-8640-46ad-8e9a-842504c5cbfc"
      2. 26: {oid: 198521794848, name: "S_Prospect ART", uuid: "503f4459-5fa4-4ab7-95d8-971a89b8b1c3",…}
        1. oid: 198521794848
        2. name: "S_Prospect ART"
        3. uuid: "503f4459-5fa4-4ab7-95d8-971a89b8b1c3"




  • 4.  RE: How to read the list of projects from workspace object id.
    Best Answer

    Broadcom Employee
    Posted Mar 16, 2020 05:52 AM
    Hi Atul,

    You will need to create a request to the API that looks a bit like this:
    https://rally1.rallydev.com/slm/webservice/v2.0/project?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/<workspaceID&query=&fetch=true&start=1&pagesize=20

    You can then add extra parameters into the 'fetch' argument to get specific fields rather than 'true' which will try to fetch as many as possible.

    If you are using Java then you can look for help here: https://github.com/RallyTools/RallyRestToolkitForJava

    ------------------------------
    Nik
    Ask me a question, I'm All Ears!
    Rally Sales Engineer
    Rally Software
    ------------------------------



  • 5.  RE: How to read the list of projects from workspace object id.

    Posted Mar 21, 2020 04:17 PM
    Great thanks for updates!! 


    We would like to know how to get rid of this exception. Please route this  question to Java team from your  group. 

    We are trying with one rallyRestAPI object. Looks like there are some concurrent users who are hitting due to which we have got following issue. 
    Let  us know how many concurrent users can use 1 RallyRestAPI object. I can setup that in my code. 




    ava.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated.
    Make sure to release the connection before allocating another one.
    at org.apache.http.util.Asserts.check(Asserts.java:34)
    at org.apache.http.impl.conn.BasicClientConnectionManager.getConnection(BasicClientConnectionManager.java:163)
    at org.apache.http.impl.conn.BasicClientConnectionManager$1.getConnection(BasicClientConnectionManager.java:145)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:422)