It's all about the answers!

Ask a question

How can I get the all values of enumeration Attribute in RRC using REST API


Erwin Kunz (94686886) | asked Mar 26 '13, 7:32 a.m.
edited Mar 26 '13, 7:33 a.m.
RRC 4.0.1
RPE 1.1.2.2

We use a Artifact with attribute TOPIC with Values [a,b,c]

I would like to generate a document sorted by the values of TOPIC.

My idea was first to get the values of TOPIC. Loop trough them and in the loop go all the Artifact where  the attribute TOPIC == value.

Heading A
  Artifact 12
  Artifact 34
Heading B
  Artifact 56
  Artifact 123

Question: how can I get the list of values of a ENUM
and if it's not possible, how would you create such a report

Thanks
erwin

Accepted answer


permanent link
Edgar Ignacio Velazquez Mar (7225) | answered Mar 26 '13, 10:51 a.m.
JAZZ DEVELOPER
 Hi Erwin,
 It is not possible to get the list of values of an ENUM attribute using the REST API, the API will only return the attributes that you have selected for the Artifact.

Are you planning to generate this report from RRC Wizard or Standalone RPE?

If you plan to use the RRC Wizard for report generation, you could delegate the sorting to the view and run the report wizard for the view. If you order the artifacts in an RRC view you don't have to bother with sorting them on the report. They should be returned by the server on the same order you sort them on the view.

If you plan to use Standalone RPE, I don't know a way this kind of report is achievable
Erwin Kunz selected this answer as the correct answer

Comments
Erwin Kunz commented Mar 26 '13, 10:54 a.m.

Hi Edgar
Great Idea with the View. I'll try it that way
Thanks
erwin

Your answer


Register or to post your answer.