Rally Software

 View Only
  • 1.  Custom Field showing as NULL through WSAPI

    Posted Sep 19, 2019 01:52 PM
    Hello,
    I am having an issue pulling details on a custom field through the WSAPI and im hoping you can help.
    The custom field called c_SolutionSet allows you to pick and choose multiple values from a list.
    When I run a report directly out of Rally the values are populated.

    When i run through WSAPI, the results always show: "c_SolutionSet": null
    Please note that the other custom field c_ClientTemperament shows results as expected, so im not seeing this issue with all custom fields.

    My web call: https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/Initiative?query=((Project.Name%Name%22)%20and%20(State%20!=%20Done))&fetch=FormattedID,Name,Project,Parent,State,Owner,c_ClientTemperament,Notes,Description,c_SolutionSet&pagesize=2000


  • 2.  RE: Custom Field showing as NULL through WSAPI
    Best Answer

    Broadcom Employee
    Posted Sep 19, 2019 06:21 PM
    Hi Chris,

    A multivalue list should always return an object even if no values are assigned to it:
    c_DropDownListMulti: {
       _rallyAPIMajor: "2",
       _rallyAPIMinor: "0",
       _ref: "https://rally1.rallydev.com/slm/webservice/v2.0/Defect/301202216580/c_DropDownListMulti",
       _type: "AllowedAttributeValue",
       _tagsNameArray: [ ],
       Count: 0
    }


    If yours is not showing showing an object like the above example, then I'm leaning towards that field not being an actual multivalue field.  Bear in mind that each artifact type needs to have the field created for it.  So it's possible that it's defined correctly on Defects, for example, but not on Portfolio Items.  Any chance you can share the field definition?