user1141827
user1141827

Reputation: 65

Using the Rally API to create an artifact at the bottom of the backlog

We've used the Ruby Rally API to create user stories, but these appear to by default be located at the top of the backlog. Is there a way to use the API / create and have it appear at the bottom of the backlog instead?

Upvotes: 1

Views: 911

Answers (2)

dave smith
dave smith

Reputation: 289

Adding to Mark's note, in rally_api (the new gem), you can query for objects sorted by rank to get the lowest item. Then if you have objectA that is lowest or a place holder story that is a cut line, you can call: someobject.rank_below(objectA)

Upvotes: 1

user984832
user984832

Reputation:

There is a REST endpoint in the Rally Webservices API to "rank above" or "rank below". For example, you can use the following REST request to re-rank a defect, relative to another Defect, whose reference you know:

https://rally1.rallydev.com/slm/webservice/1.25/defect/3850797404.js?rankAbove=/defect/3859484383.js&fetch=Name,FormattedID,Rank

The standard Rally Ruby REST API does not have access to this endpoint, unfortunately.

If you're interested however there is a new "alpha" Rally Ruby REST API that serializes requests using JSON and not XML. The "rankAbove and rankBelow" endpoints are available to the Ruby JSON API. Another advantage of the JSON-based Ruby API is that because JSON is so much more compact than XML, it offers performance benefits over the older XML-based Ruby REST API.

Upvotes: 1

Related Questions