Skip to content

RM how to retrieve value/label from enumerated attribute #64

@struggling-dev0

Description

@struggling-dev0

I've been working in a project that has made extensive use of custom artifacts and attributes, and was wondering if there was a way to translate the URI returned for enumerated attributes by oslc_query methods into the corresponding value/label.

In the artifact XML returned by theartifact_x, etag = self.config.component.execute_get_rdf_xml( theartifact_u, return_etag=True, intent="Retrieve the artifact" ) we've been able to retrieve and modify our custom attributes by parsing the output, but for enumerated attributes the only return value is an 'rdf:resource' URI (example provided below).

<j.0:enumAttribute rdf:resource="https://jazz.external.company.com/rm/types/AT_YizZiKjKEe2vXr_tc4cF9Q#_9s-KxivuIym9A1QTfgQjpA"/>

How can I retrieve the value and label associated with this enumerated URI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions