rally

Rally APIs: How to copy Test Folder and member Test Cases

吃可爱长大的小学妹 提交于 2019-12-02 11:56:27
This question was asked by a different user earlier: Copying Test Cases and Test Folder using Rally Python or Ruby API [closed] but closed by moderators as being an overly broad question. However, given the inability to copy Test Folders and their member Test Cases within the Rally UI , this is a common need for Rally Users. Thus - I'll re-pose the question, hopefully with enough detail to stand as a valid question. I'll also re-post the answers that I developed for the original question. Question: As a Rally user and developer in the Rally Python and Ruby REST APIs: how can I leverage the

Rally Ruby toolkit: how to get URL of Portfolio Item's state?

和自甴很熟 提交于 2019-12-02 11:22:00
Is there an example in Ruby using rally_api how to set State of a feature as mentioned here ? Specifically, is there a way to query the ObjectID or the fully qualified path of state to use "State" => "Developing" instead of "State" => "/state/<ObjectID>" It is possible to query State, create a hash, and populate the hash with the query results, where State Name is the key and State _ref is the value: state_results.each do |s| s.read state_hash[s["Name"]] = s["_ref"] end Then we can update a State: features.each do |f| field_updates={"State" => state_hash["Developing"]} f.update(field_updates)

Rally update Changeset data from Java using Java Toolkit for Rally REST API

六眼飞鱼酱① 提交于 2019-12-02 08:30:13
I need to create a new Changeset entry for a story, given I have the formattedID and the objectID for the story. I am using the given Java Toolkit for Rally REST API (http://developer.rallydev.com/help/java-toolkit-rally-rest-api) Any help here would be very useful thanks! Here's a example of how to accomplish this: public class RestExample_AddChangesetToUserStory { public static void main(String[] args) throws URISyntaxException, IOException { // Rally parameters String rallyURL = new String("https://rally1.rallydev.com"); String wsapiVersion = new String("1.36"); String userName = new String

Lookback API: Return visible work items only

不问归期 提交于 2019-12-02 08:07:25
问题 We are having several issues using the LBAPI to scope down from the portfolio items in our workspace. Since many teams contribute to a single project, and a user trying to pull metrics on these projects might not always have view access to all the contributing teams, we are faced with one of two options: Return the 403 error from the Rally servers to the user, giving them no useful information with regards to the requested metrics. Pass an array of "visible" teams to the LBAPI which will only

Rally grid color rows based on model

北城余情 提交于 2019-12-02 07:56:27
I have a rallygrid that is configured to display two models: PortfolioItem/Feature and PortfolioItem/Rollup. I want to color them in the grid to differentiate them. I am not garunteed that they will alternate in the grid, or anything like that. I just want to apply a subtle color to the rollups to differentiate them visually. Can anyone think of an easy way to achieve this? I have tried: viewConfig: { getRowClass: function(record, index, rowParams, store) { console.log('record',record); // nothing logged in console console.log('index',index); return 'colorCodeGrid'; // class never added } },

Rally add test case results in bulk using web services API

耗尽温柔 提交于 2019-12-02 07:21:45
问题 We are about to start the phase of updating test results in Rally via the api. I couldn't find an example to do this via the web services API (e.g. posting xml). Can anyone point me to this? Also I wondered what ability there is to do this in bulk, e.g. upload a set of test results in one go. Perhaps there are connectors for this that will upload various test result standards (e.g. JUnit report) into Rally? Thoughts and ideas welcomed. Thanks, Andy 回答1: If you're doing a simple POST against

Rally add test case results in bulk using web services API

北城余情 提交于 2019-12-02 07:21:09
We are about to start the phase of updating test results in Rally via the api. I couldn't find an example to do this via the web services API (e.g. posting xml). Can anyone point me to this? Also I wondered what ability there is to do this in bulk, e.g. upload a set of test results in one go. Perhaps there are connectors for this that will upload various test result standards (e.g. JUnit report) into Rally? Thoughts and ideas welcomed. Thanks, Andy If you're doing a simple POST against the Test Case Result Create REST endpoint: https://rally1.rallydev.com/slm/webservice/1.41/testcaseresult

Lookback API: Return visible work items only

喜你入骨 提交于 2019-12-02 07:17:07
We are having several issues using the LBAPI to scope down from the portfolio items in our workspace. Since many teams contribute to a single project, and a user trying to pull metrics on these projects might not always have view access to all the contributing teams, we are faced with one of two options: Return the 403 error from the Rally servers to the user, giving them no useful information with regards to the requested metrics. Pass an array of "visible" teams to the LBAPI which will only return work items from teams which I have view access to. So, the logical process would be to query

Lookback API: Deleted items

别来无恙 提交于 2019-12-02 06:33:00
问题 I'd like to use the lookback API to view the history of a deleted object, which I think should be simple if I know the formatted id. I just need to query: { FormattedID: 'DEXXXX' } But does the Lookback API record anything special for when an object is deleted (like can I tell exactly when it was deleted or by whom)? Can it help point me to the correct place in the Recycle bin so that I could try to undelete it? 回答1: Interesting. I just ran a REST query on the Recycle Bin with fetch=true and

How to obtain a list of workspaces using Rally REST .NET

泪湿孤枕 提交于 2019-12-02 05:23:19
问题 I'm trying to obtain a list of available workspaces for a given Rally subscription, but it doesn't seem like the actual workspaces are being returned in the query. Here's what I have so far: RallyRestApi restApi = new RallyRestApi("username", "password"); List<string> list = new List<string>(); Request request = new Request("Subscriptions"); request.Fetch = new List<string>(){ "Name", "SubscriptionID", "Workspaces" }; QueryResult queryResult = restApi.Query(request); foreach (var result in