Skip to content

CustomAgile/drop-down-multi-value-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drop-down-multi-value-manager

Tools to dump and keep a drop-down multi-value field in Agile Central consistent with values in a text file. If the values have a "key" portion of the value (e.g. "1234 My Value") then the app will update any values that start with same string (e.g. "1234 My NEW Value").

Run first with "preview": true (in file config/config.json) to see the changes that will occur. Preview mode does not make changes in Agile Central.

Usage

  1. Setup Python and install dependencies (pyral is the only actual dependency which pulls in the others from requirements.txt)
    • pip install -r requirements.txt
  2. Setup environment variables (two options):
    • Username/password option:
      • export RALLY_USER=user@company.com
      • export RALLY_PASSORD=TopSecret
    • APIKey option:
      • export APIKEY=_12345689...
  3. Edit config/config.json to set preview mode, the element name and attribute name.
  4. Edit config/desired_values.txt to the values you want to use. One value per line
  5. (optional) Edit config/logging.json to control logging output and location. Default is to a file and the console.

Dump current values

  1. python DumpCurrentValues.py config/config.json

Update current values with file

  1. python ValueManager.py config/config.json config/desired_values.txt