Using the REST REST API, how can I get the non-API (website) URL for user history?

I am using the Rally REST API to integrate user history data from Rally into another application. I have no problem retrieving user history data from Rally, however I would like to provide a hyperlink for users of another application to go to this user history in the Rally GUI (without using any APIs).

For example, a custom story URL using the REST API looks something like this:

https://www.rallydev.com/slm/webservice/1.30/hierarchicalrequirement/{ID} 

whereas the URL that the user will use to view this story in the rally looks something like this:

 https://www.rallydev.com/#/{ProjectID}d/detail/userstory/{ID} 

Is there a way to get the UI of the user interface (the URL that the Rally end user will use) from the REST API?

+6
source share
2 answers

ProjectID is actually optional, so you will also be taken to a page with a detailed link: https://rally1.rallydev.com/#/detail/userstory/12345

However, this URL format is not guaranteed to change. In the new SDK 2.0 application, we will provide some version of the utility intended for the version to build detailed links for elements to account for this ...

+6
source

If you are doing a GET, for example:

  https://rally1.rallydev.com/slm/webservice/1.30/hierarchicalrequirement/{ID}.js?fetch=Project,ObjectID 

You will get the result, for example:

 {"HierarchicalRequirement": {"_rallyAPIMajor": "1", "_rallyAPIMinor": "30", "_ref": "https://rally1.rallydev.com/slm/webservice/1.30/hierarchicalrequirement/<<STORYID>>.js", "_objectVersion": "129", "_refObjectName": "Story Name", "ObjectID": <<STORYID>>, "Project": {"_rallyAPIMajor": "1", "_rallyAPIMinor": "30", "_ref": "https://rally1.rallydev.com/slm/webservice/1.30/project/<<STORYID>>.js", "_objectVersion": "2", "_refObjectName": "Project Name", "ObjectID": <<PROJECTID>>, "_type": "Project"}, "Errors": [], "Warnings": []}} 

You can then disconnect STORYID and PROJECTID from the response. Then you can use the project object identifier from the response along with the object object identifier to stitch the desired URL:

https://rally1.rallydev.com/#/ {ProjectID} d / detail / userstory / {ID}

+2
source

Source: https://habr.com/ru/post/915422/


All Articles