How to change/update TeamArea value in RQM to an existing test artifact(especially for test script) with rest api. (python)
hello respective,
i am trying to change or update team area value for an existing test artifact. i created through POST method. initially i provided team area value (while creating). Then i again execute my script to update the test artifact. But for second time i provided different team area value. when i check in the rqm team area value was the same while the creation time i provided. it didn't update the second value.
Ex.
Input: team area value given while creation for test artifact: "abc"
Output: team area value in newly created test artifact : "abc"
2nd time execution,
input: team area value given to update the existing test artifact: "qwe"
output: team area value after update the existing test artifact: "abc"
but description, attributes, categories, sections, etc. everything are updating.
2 answers
I've found that some values will not take when you attempt to update them using the RqmApi, but do work when being updated via OSLC. Seems odd that you would need to perform two GET (one RqmApi, one OSLC) and two PUT (one RqmApi, one OSLC) but this has worked for me in the past.
See https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding for links to OSLC related information and the defined APIs.
I assume you use the OSLC API. In this case you would GET the artifact. In the response body, you would replace the URI of the team area with the URI of the desired team area. The information is PUT to the artifact URI. Note that you send the etag you received in the previous operation (e.g. GET) in an 'If-Match' header. This would look like If-Match "be0c8678-d77d-3c51-8dbb-f4dbee6dc075" for etag "be0c8678-d77d-3c51-8dbb-f4dbee6dc075"
Note, POST is the create artifact operation.
Comments
showing 5 of 10
show 5 more comments