Giter Site home page Giter Site logo

rallyresttoolkitforvba's Introduction

RallyRestToolkitForVBA

##What Is It?

A Rally REST toolkit written for Microsoft Visual Basic for Applications (VBA). VBA is a scripting language used by Microsoft Office (and other) applications.

##Why? Why not? VBA is a useful toolkit for automating processes in Microsoft Excel, for one. The Rally Excel Plugin, while providing a nice UI-based interface for querying Rally, does not offer script-ability or automation.

##Why Not? Excellent question. VBA may be quite slow and inefficient for accessing large amounts of data. It's not asynchronous, and can be a clumsy way to get data into/out of Rally in large volumes. But for small datasets, it could be convenient.

##How functional is this toolkit at this point in time? Barely. Pre-alpha. Right now this is nothing more than a proof-of-concept for Querying Rally and Creating Rally Artifacts from VBA code. More to come though!

Getting started

Note: You'll need to follow ALL of the steps below before trying any of the example code.

  1. Download the RallyRestToolkitForVBA.xlsm Excel Worksheet

  2. Enable Macros (Enable Content)

Enable Macros

  1. Show the Developer Tools Menu in Excel
  2. File -> Options ->

File Options

  1. Customize Ribbon -> Developer "Checked"

Customize Ribbon / Developer

  1. Open Visual Basic Editor

VBA Editor

  1. Go to Tools -> References

Tools References

  1. The References shown here are needed to use the RallyRestToolkitForVBA. Add/load any that are not checked on in your environment.

Needed References

Example Video

Video showing Sample Query from Worksheet (illustrating code in GetStoriesForm).

Code Structure

The core functionality is contained in the Class Modules that are accessible from the VBA Editor for the Excel Worksheet:

Core Classes

Example Code

The code behind the "Get Stories" button in the worksheet is contained within the "GetStoriesForm" module. There's some UI logic there, but the useful stuff around how to instantiate and use the RallyRestToolkitForVBA toolkit is in the QueryStories function:

Sample Code

There is also an example showing how to use the RallyRestToolkitForVBA toolkit to Create Defects, within the "Examples" module. This sample isn't hooked up to any UI Components.

Create Defects Example

To Do

There's lots still to do with this to make this toolkit anything close to useful. There's the U/D of CRUD (Update and Delete) still to do. Overall, error-checking and handling needs to be a lot more robust throughout. There are probably a lot of situations where text that resides within Excel cells will require more thorough encoding and escaping before uploading to Rally, in order to get things to work right. This is alpha-level code...so just be aware.

Will this work with Excel for Macs?

Unfortunately, No. The MSXML2 module that VBA uses for the HTTP connection is not available on the Mac.

rallyresttoolkitforvba's People

Contributors

markwilliams970 avatar

Watchers

James Cloos avatar Steve Rhoads avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.