1

I am trying to restore a User Story from Recycle bin, how do i do it (I only have the objectID of the user story available)?

Is there any examples?

Sarita
  • 145
  • 9

1 Answers1

1

There's no way to currently do this via WSAPI. The unsupported, undocumented way to do this is via the private /slm/recyclebin/restore.sp endpoint. You can see how it's used if you go to the recycle bin page and restore an item via the gear menu.

Kyle Morse
  • 8,390
  • 2
  • 15
  • 16
  • I get the response 'We're Sorry' – Sarita Jan 29 '17 at 05:39
  • hmm, could you post your code you're using to access the endpoint? sounds like it's returning a server 500, so the parameters are probably not quite right... – Kyle Morse Jan 30 '17 at 15:27
  • url = slm/recyclebin/restore.sp?cpoid=12345&projectScopeUp=false&projectScopeDown=true&_slug=%2Frecyclebin_1&oid=6789 ` request({ url: url, proxy: rallyUtil.proxyURL, headers: {ZSESSIONID: rallyConfig.apiKey} }, function (error, response, body) {}) ` – Sarita Jan 30 '17 at 16:41
  • hmm, i wonder if api keys don't work on that endpoint. i can't say i've ever tried to do this, so it's entirely possible that you just can't do it by design... – Kyle Morse Feb 03 '17 at 21:44
  • @KyleMorse Is there any update to this? I'm currently in the same predicament with ~1300 test cases I need to restore from the recycle bin... Is there still no way to restore artifacts via the RallyRestApi (ideally) or some other way (programmatically)? – Kyle Ross Jan 05 '21 at 18:05