Rally API: Error in rally API response: Validation error: Capability.ValueScore should not be null
book
Article ID: 191226
calendar_today
Updated On:
Products
CA Agile Central SaaS (Rally)CA Agile Central On Premise (Rally)
Issue/Introduction
Error while trying to create a Capability in the Rally using the API. During the creation, we are passing the field value for the system filed "Value Score".
For Example:
API request : https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/Capability/create?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/115962508596&key=RC64KQQOTRml3YtDZgnHhJv8xOvtUDjOHvMBKcRP0
Request body : {"portfolioitem/Capability": {"Project":{"_ref":"https://rally1.rallydev.com/slm/webservice/v2.0/project/**********","_type":"Project"}, "ValueScore":"36.0", "Workspace":{"_ref":"https://rally1.rallydev.com/slm/webservice/v2.0/workspace/***********","_type":"Workspace","_refObjectName":"Test Express"}, "Name":"Testing of the Capability for Value Score field"}}
However, while sending the API request to Rally we have come through below error.
"Received error in rally API response: Validation error: Capability.ValueScore should not be null."
We are passing the value for the "ValueScore" field, then why we are getting above such error in the response?
Environment
Release : SAAS
Component : AGILE CENTRAL
Resolution
"Value Score" field value should be a Non-Negative Interger, for the API to pass the value to Rally.