How to update a multi-select field in ALM using REST API / JSON?

Hello everyone,

we are currently trying to import test cases into ALM/QC using REST API / JSON and have a problem setting values into multi-select fields.


The variant 1 only inserts 2 first values: "AAA;BBB"

{
"Fields": [
{
"Name": "user-01",
"values": [
{
"value": "AAA"
"value": "BBB"
"value": "CCC"
"value": "DDD"
}
]
}
]
}

The variant 2 (as JSON-Array) only inserts the last value: "DDD"

{
"Fields": [
{
"Name": "user-01",
"values": [
{
"value": "AAA","BBB","CCC","DDD"
}
]
}
]
}

* The UD-Field "ts_user_01" is "multi-select" with "verify values".
** All Values are in the corresponding list, setting each value works individually.
*** ALM Version 17.01

Unfortunately, the API documentation has no example and we have not found anything in the forums either.
Perhaps someone has experience with the case?

  • Verified Answer

    +1  

    Please try to call put rest to set multi-select fields as following format:

    {

     

        "Fields": [
                    {
                        "Name": "user-01",
                        "values": [
                            {
                                "value": "aaa"
                            },
                            {
                                "value": "bbb"
                            }
                        ]
                    }]

       }