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.
Asked
Active
Viewed 241 times
2 Answers
0
What is your goal of such an approach?

JPKole
- 341
- 1
- 6
-
In case of team changes the project name of rally no need for another configuration if we go with Object Id. – user1632980 Mar 18 '19 at 19:24
-
Any suggestions or comments. – user1632980 Mar 19 '19 at 23:17
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 = "user@company.com"
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()

JPKole
- 341
- 1
- 6