Rally Software

  • 1.  API pull all Stories for Epic but multiple Workspaces

    Posted Apr 09, 2019 05:45 AM

    Hi I have another problem of the same nature. What if there is multiple Workspaces?

    I need all Stories for Epic also from another workspace. How would I implement it please?

     

    I can use the following on my default Workspace:

    https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature?pagesize=2000&&start=1&query=(Parent.Parent.FormattedID = E101)

     

    https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?pagesize=2000&&start=1&query=(Parent.Parent.Parent.FormattedID = E101)

     

    But I also need the same (diferent id) from another workspace. Hope I am explaining it right.



  • 2.  Re: API pull all Stories for Epic but multiple Workspaces
    Best Answer

    Broadcom Employee
    Posted Apr 09, 2019 11:15 AM

    Hi Dawid,

     

    You can use a Workspace as an argument in your query string and that will execute it in that workspace. So, for example:

     

    https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/<Your Workspace Object ID>&pagesize=2000&&start=1&query=(Parent.Parent.FormattedID = E101)

     

    Or,

    https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/<Your Workspace Object ID>&pagesize=2000&&start=1&query=(Parent.Parent.Parent.FormattedID = E101)

     

    The above query will run in the workspace you specified. Obviously the username who is running this query must have a permission to that workspace.

     

    Let us know if that helped.

     

    Sagi



  • 3.  Re: API pull all Stories for Epic but multiple Workspaces

    Posted Apr 09, 2019 12:35 PM

    Awesome, Thank you for saving me again  That works perfect.



  • 4.  Re: API pull all Stories for Epic but multiple Workspaces

    Broadcom Employee
    Posted Apr 09, 2019 01:07 PM

    Great. Glad it helped