From the below sample code i am able to test the working to list all Tasks in a project.
I want to add New tasks Automatically under a User Story US1234.
I have some 50 User Story in excel to Enter with Task fields (Name ,description, estimate ,To do ,etc... ) ,I want to automate this work.
How to create a task under a user story with the Task fields using REST api in ruby.
There was not much of help with this link http://developer.rallydev.com/help/ruby-toolkit-rally-rest-api
require 'rubygems'
require 'rally_rest_api'
rally= RallyRestAPI.new(:base_url =>"https://rally1.rallydev.com/slm", :username => "harsha.gowda@xyz.com", :password => "xyz123")
projects = rally.find(:project) { equal:name, "XYZ Engineering - Scrum Team 2"}
projects.each do |project|
# puts project.name
tasks = rally.find(:task, :project => project, :fetch => true) {equal :State, "Defined"}
tasks.each do |task|
puts task.name
end
end