Skip to content

markwilliams970/Rally-Export-Attachments

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

License

Copyright (c) Rally Software Development Corp. 2013 Distributed under the MIT License.

Warranty

Rally-Export-Attachments is available on an as-is basis. Rally Software does not provide any support for this utility.

Introduction

The Rally-Export-Attachments is a Ruby script to export all attachments from a specified Rally Workspace for archival purposes

Script

export-workspace-attachments.rb

Purpose

Used to export all the attachments of a Rally subscription into individual files for archival.

Usage

  1. Change the following four variables found in the code to match your environment. Alternatively, add them to a file called my_vars.rb located in the same directory. The script will automatically look for, and load the variables from this file if found.
$my_base_url       = "https://rally1.rallydev.com/slm"
$my_username       = "user@company.com"
$my_password       = "topsecret"
$my_workspace_oid  = "12345678910" # (ObjectID of the workspace you wish to export attachments from.)

Notes

  1. Invoke the script:

     c:\> ruby export-workspace-attachments.rb 
  2. All attachments found will be saved in:

 ./Saved_Attachments/WS####/FormattedIDs/attachment-###.{type}.{ext} 

Where:

   
WS### - is the ordinal workspace number found (1 based).
FormattedIDs - is the combination of the FormattedID(s) of the Artifact, TestCaseResult or TestSet to which the attachment belongs.
attachment-### - is the ordinal attachment number found in a given workspace (1 based).
{type} - is the type of file, either "METADATA" or "DATA".
{ext} - is the file extension found on the attachment. Used on the DATA {type} file only.

API Documentation

Ruby Requirements

Tested on Ruby Versions:

  • ruby-1.9.3-p194
  • ruby-1.9.3-p327 Required Gems:
  • rally_api (0.9.2)
  • httpclient (2.3.2) -- Usually included with the rally_api gem

About

Ruby script to export all attachments from a specified Rally Workspace for archival purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%