Questions tagged [pyral]

Python toolkit for Rally REST API

The pyral package enables you to push, pull and otherwise wrangle the data in your Rally subscription using the popular and productive Python language. The pyral package provides a smooth and easy to use veneer on top of the Rally REST Web Services API using JSON.

69 questions
0
votes
1 answer

TestCase defined under TestFolder on Rally not getting updated by pyral

I'm not able to update the testCase defined on Rally using pyral Below is the code snippet I am using: # Get the testcase that needs to be updated query_criteria = 'FormattedID = "%s"' % tc rally_response = rally_obj.get('TestCase', fetch=True,…
saumya
  • 13
  • 3
0
votes
1 answer

Using pyral to create a new feature associated with a SolutionCapability

I am trying to access the rest api's of Rally using PyRal library of python to try and create new features , I am able to create a feature but not able to associate to a SolutionCapability. I have tried passing the SolutionCapability as Json in the…
0
votes
0 answers

How do I create an artifact with Multi-Value field type?

I'm trying to programatically create a User Story in Rally with pyral. We have some custom fields set up, e.g Client Name, which is a Drop-Down List (Multi-Value), for regular fields I'm able to provide the value as {key: value pairs} (e.g…
amustapha
  • 416
  • 3
  • 12
0
votes
3 answers

I am trying to upload test cases in CA Rally using Python library pyral, test cases are uploaded successfully but not able to set Owner for test case

I am trying to upload test cases in CA Rally using Python library pyral, test cases are uploaded successfully but not able to set Owner for test case import sys from pyral import Rally, rallyWorkset options = [arg for arg in sys.argv[1:] if…
0
votes
2 answers

How to connect rally with Object Id of project

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.
user1632980
  • 275
  • 1
  • 3
  • 10
0
votes
1 answer

pyral query no longer finds Rally tickets

I'm using the Python plugin pyral. I connect to Rally like this: r = pyral.Rally(apikey="", project="") And then I search for a Rally story like this: resp = r.get("UserStory", fetch=True, query='FormattedID =…
twasbrillig
  • 17,084
  • 9
  • 43
  • 67
0
votes
0 answers

Python Better Way to Process Hierarchal Data Other Than Nested if and for Loops

Trying to write hierachal data pulled through an API and write to a CSV file and ended up with a deeply nested if-for loop solution. Data is organized like this: Program +--Project +--Feature +--Team Feature …
0
votes
1 answer

Creating TestCase and adding attachment using Pyral

I am trying to create a TestCase and then add an attachment to the TestCase. Currently i can successfully create a TestCase, but when I go to add the attachment I get 0 errors but no attachments are added. Here is my code: import sys, os import…
user3831011
  • 309
  • 1
  • 10
0
votes
1 answer

Pyral Cannot Parse Parent Object returned

I am trying to get the Parent Epic / Feature for particular User Stories in Rally. However I am only getting the parent object and I am not sure how to parse it. I have tried dict and dir(object) to get field values but it did not work. I have also…
0
votes
2 answers

error in connecting Rally from python via pyral using API key

My organization uses SSO authentication. I am getting error while trying to connect rally using api key from python via pyral. Not sure what i am doing wrong. Any help is appreciated! I am using below code in the sample.py file (only change is I am…
Sujoy
  • 1,186
  • 1
  • 9
  • 12
0
votes
3 answers

Rally host is non-existent or unreachable via pyral

I am trying to call rally server simply using below: rally = Rally(server, user, password, workspace=workspace, project=project) But it is giving below error: Traceback (most recent call last): File "testprint.py", line 20, in
syed
  • 33
  • 6
0
votes
1 answer

Getting Defect severity list Pyral

Is there a way with Pyral to get a list of the different defects severitys? I can query by severity type like: severity=rally.get(entity='Defect', fetch=True, query=['Severity = "Serious"']) and that gives all of the defects with severity…
Nathan Smith
  • 37
  • 2
  • 6
0
votes
1 answer

pyral addcollection is not working for multi value dropdown

Not able to addcollection for a multidropdown field, fields are multi value drop down and modifiable = yes. error: File "/usr/local/lib/python3.6/site-packages/pyral/restapi.py", line 1206, in addCollectionItems target_type =…
0
votes
2 answers

pyral accessing customfield .attributes values from CA Agile Central

I'm super new in development in general. I'm currently building a webapp that get data from Rally/CA Agile Central and put them in a neat table. My code: response = rally.get('UserStory', fetch = True, query=query_criteria) response_defect =…
0
votes
1 answer

How to add multiple values to a multi value drop down field in Rally using python and pyral

I'm trying to update a multi value drop down list field (custom field) in Rally using python2.7 and pyral (v 1.3.2). I can add a single value to the field like this: >>> update_data = {'FormattedID' : 'US58848', 'c_MapProfile' : {'ObjectID' :…