It's all about the answers!

Ask a question

Why is externalValue not exposed in the OSLC interface for Enumerations?


Matthew Hardin (50814) | asked Mar 04 '20, 3:03 p.m.
edited Mar 10 '20, 2:59 a.m. by Ralph Schoon (63.6k33647)

I have added custom enumeration attributes to work items.
When querying via OSLC I would expect that the externalValue would be presented, but it is not.

I am on RTC 6.0.6.1

Query:


[[
  {
    "rdf:resource": "https://pm.strongback.us/ccm/oslc/enumerations/_xwX-kORWEemaN_2MCcLgCw/supportGroups/supportGroups.literal.l1",
    "dc:title": "Production Control US",
    "rtc_cm:iconUrl": null,
    "dc:identifier": "supportGroups.literal.l1"
  },
  {
    "rdf:resource": "https://pm.strongback.us/ccm/oslc/enumerations/_xwX-kORWEemaN_2MCcLgCw/supportGroups/supportGroups.literal.l2",
    "dc:title": "Development Operations IL",
    "rtc_cm:iconUrl": null,
    "dc:identifier": "supportGroups.literal.l2"
  },
  {
    "rdf:resource": "https://pm.strongback.us/ccm/oslc/enumerations/_xwX-kORWEemaN_2MCcLgCw/supportGroups/supportGroups.literal.l3",
    "dc:title": "Information Services Group",
    "rtc_cm:iconUrl": null,
    "dc:identifier": "supportGroups.literal.l3"
  },
  {
    "rdf:resource": "https://pm.strongback.us/ccm/oslc/enumerations/_xwX-kORWEemaN_2MCcLgCw/supportGroups/supportGroups.literal.l4",
    "dc:title": "Unknown",
    "rtc_cm:iconUrl": null,
    "dc:identifier": "supportGroups.literal.l4"
  }
] 
I would expect it to return something like this:
[
  {
    "rdf:resource": "https://pm.strongback.us/ccm/oslc/enumerations/_xwX-kORWEemaN_2MCcLgCw/supportGroups/supportGroups.literal.l1",
    "dc:title": "Production Control US",
    "externalValue": "Prod_Control_US"
    "rtc_cm:iconUrl": null,
    "dc:identifier": "supportGroups.literal.l1"
  },
  {
    "rdf:resource": "https://pm.strongback.us/ccm/oslc/enumerations/_xwX-kORWEemaN_2MCcLgCw/supportGroups/supportGroups.literal.l2",
    "dc:title": "Development Operations IL",
    "externalValue": "DevOps_IL"
    "rtc_cm:iconUrl": null,
    "dc:identifier": "supportGroups.literal.l2"
  },
  {
    "rdf:resource": "https://pm.strongback.us/ccm/oslc/enumerations/_xwX-kORWEemaN_2MCcLgCw/supportGroups/supportGroups.literal.l3",
    "dc:title": "Information Services Group",
    "externalValue": "ISG"
    "rtc_cm:iconUrl": null,
    "dc:identifier": "supportGroups.literal.l3"
  },
  {
    "rdf:resource": "https://pm.strongback.us/ccm/oslc/enumerations/_xwX-kORWEemaN_2MCcLgCw/supportGroups/supportGroups.literal.l4",
    "dc:title": "Unknown",
    "externalValue": "Unknown"
    "rtc_cm:iconUrl": null,
    "dc:identifier": "supportGroups.literal.l4"
  }
]
Is this a bug? Or am I doing something wrong? Or am I just wrong about what to expect?


Comments
Matthew Hardin commented Mar 05 '20, 1:31 a.m. | edited Mar 06 '20, 1:45 a.m.

I've tried multiple times to format the message so that it was readable. I keep getting told it was spam.  I finally got the last incarnation of it. Total crap.   Can't format or edit a question.


Ralph Schoon commented Mar 06 '20, 1:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

That is the unfortunate truth when trying to use the same letters for everything. Displaying XML here is impossible, java generics do not show propertly. You have problems with smaller as and grater than signs. 


In the case above you can try to switch to "View HTML Source" top most right button of the edit window and then use the pre tag (preformatted) around your JSON.  <pre> and </pre>. Not sure if this comment will display properly.


Matthew Hardin commented Mar 09 '20, 3:08 p.m.

Well that is a little more readable... ugh


Ralph Schoon commented Mar 10 '20, 2:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Yes, better. Sorry for the inconvenience. I hope someone can answer. I don't know. 

Be the first one to answer this question!


Register or 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.