Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get the list of enumerate values of a attribute in QM using api?

 Hi Team,


I will creating Test results using POST Rest API with the result(Passed,failed). So, I am trying to find the list of values present in the column(example: State). 
Once I find it, I have to use it appropriately.

So, Could you help me on how to list the values in a column using rest api?

0 votes



One answer

Permanent link

 I would suggest you make yourself familiar with the APIs available, because they work different and allow different things. You can find a list of APIS by product here: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding


For ETM, there are at least two APIs that are REST based and allow POST operations. 
1. The OSLC QM API
2. The Reportable REST API (that actually only for ETM allows POST and PUT)

Both are different and work different. It is important to also mention which API one talks about in forum questions. 

0 votes

Comments

If a property is an enumeration, I would hope the OSLC instance resource shape referenced by the resource would declare an OSLC property with oslc:allowedValues. That would tell you the set of enumeration values for that property. Commonly, enumeration values are represented as URIs - see https://jazz.net/wiki/bin/view/LinkedData/BestPractices

 Thank you, Ralph and David for the info, I'll check it out.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jul 12 '23, 1:43 a.m.

Question was seen: 866 times

Last updated: Jul 12 '23, 4:44 a.m.

Confirmation Cancel Confirm