Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8484631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:25:58+00:00 2026-06-10T20:25:58+00:00

From the below sample code i am able to test the working to list

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:25:59+00:00Added an answer on June 10, 2026 at 8:25 pm

    You should be able to find most of the answers to your questions here: http://rally-rest-api.rubyforge.org/crud.html.

    Here is a basic example, which iterates through each Task on a User Story:

    require 'rubygems'
    require 'rally_rest_api'
    
    rally= RallyRestAPI.new(:base_url => url,  :username => user,  :password => pw)
    project  = (rally.find(:project) { equal :name, name}).first()
    
    rally.find(:hierarchical_requirement, :project => project) {equal :some_field, some_value}.each{ |hr|
        hr.tasks.each{ |task|
            task.update(:some_field1 => some_value1)
            task.update(:some_field2 => some_value2)
            task.update(:some_field3 => some_value3)
            task.update(:some_field4 => some_value4)
        }
    }
    

    I don’t know how you intend on updating each individually, so you’ll have to modify it with your own logic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am able to provide animation to an image button from below code. this.RegisterName(image1.Name,
I want to get the content of a list in a webpage from below
Below is sample code from a Module I have in my Flex app. I
In the sample code below, it shows that boost::tuple can be created implicitly from
I am using the below code snippet to FTP simple text files from a
I have a IObservable [named rows in the sample below] from Reactive extensions framework
From below array i want the value of _sql to be displayed or we
I've been using the below sample code snippet to update a SQL Server 2005
I'm developing an application with the help of sample code from the WWDC 2010
I have a sample windows phone 7 project where I test some MVVM stuff,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.