RPE - Publishing RTC Work Items using reportable REST API
Hi,
I believe I have correctly assembled a GET URL for an RTC work item, however, using Talend API tester, I get a "302 Found" but no content.
This is first dabble into publishing from RTC having spent years publishing from DNG and DOORS 9.6.
What am I missing here?
https://[server]/ccm/rpt/repository/workitem?fields=workitem/workItem[id=3980]/(description|summary|severity|state)
|
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Nov 04 '21, 11:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Nov 04 '21, 11:27 a.m.
You get a 302 if you are not authenticated against EWM and have "follow redirect" switched off in your HTTP client.
I just ran an unauthenticated request https://elm.example.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=1]/(id|summary|approvals/(approver/(name)|approvalDescriptor/(id|typeIdentifier|typeName|name|cumulativeStateIdentifier|cumulativeStateName|dueDate|approvals))) against the reportable REST API with Follow Redirect off and see exactly that.
Glyn Costello selected this answer as the correct answer
Comments
Glyn Costello
commented Nov 04 '21, 11:32 a.m.
I did add an "Authentication" to the request, however, if I access the application and log in, then I no longer get the 302 response.
Ralph Schoon
commented Nov 04 '21, 12:39 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Not sure I understand. You need to be properly authenticated if you want to access a protected resource. the redirects and status values are part of an authentication dance that could be implemented. Different Server setups support different authentications. Basic Auth is the fallback, I believe. |
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.