RPE - Publishing RTC Work Items using reportable REST API
![](http://jazz.net/_images/myphoto/f14fabf0c9b930631335d80fe1ef8bcc.jpg)
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
![](http://jazz.net/_images/myphoto/f14fabf0c9b930631335d80fe1ef8bcc.jpg)
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.
Comments
![](http://jazz.net/_images/myphoto/f14fabf0c9b930631335d80fe1ef8bcc.jpg)
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.
![](http://jazz.net/_images/myphoto/e5e63d5878217b64611c1df9401b7cd3.jpg)
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.Â