Reno, NV    +1 (800)0 621-0871

Go back

Tutorial

PivotalAngel: Pivotal Tracker helper

  |  March 22, 2012

PivotalAngel gem provides Pivotal Tracker helpers to allow deep cloning of a project and managing project labels.

How to use:

  • Login to your Pivotal Tracker Account

PivotalTracker::Client.token = 'pivotal_tracker_token'

  • Deep Clone a Project

When you deep clone you make a copy of a project including its stories, tasks and notes

source_project = PivotalTracker::Project.find('project_id') PivotalAngel::Project.deep_clone(source_project, 'name_of_new_project')

  • Rename a label

project = PivotalTracker::Project.find('project_id') PivotalAngel::Label.rename(project, 'old_label', 'new_label')

  • Add a label to a story or array of stories

project = PivotalTracker::Project.find('project_id') stories = project.stories.all PivotalAngel::Label.apply_to(stories, 'new_label')

  • Remove a label from a story or array of stories

project = PivotalTracker::Project.find('project_id') stories = project.stories.all PivotalAngel::Label.remove_from(stories, 'old_label')