I am trying to connect rally workspace and project with pyral by project name but I need to connect rally with project object id. Could any one help me. I couldn’t find any option to connect rally with object Id through pyral.
How to connect rally with Object Id of project
282 Views Asked by user1632980 At
2
There are 2 best solutions below
0

This code will connect to Rally using your default Workspace and Project, then displays all Workspaces and Projects that your UserID has access to:
#!/usr/bin/env python3
import sys
from pyral import Rally, rallySettings, RallyRESTAPIError
my_server = "rally1.rallydev.com"
my_username = "[email protected]"
my_password = ".............."
rally = Rally(my_server, my_username, my_password)
workspaces = rally.getWorkspaces()
for wksp in workspaces:
print(" Worspace: ObjectID=%12s Name='%s'" % (wksp.oid, wksp.Name))
projects = rally.getProjects(workspace=wksp.Name)
for proj in projects:
print(" Project: ObjectID=%12.12s Name='%s'" % (proj.oid, proj.Name))
sys.exit()
What is your goal of such an approach?