It's all about the answers!

Ask a question

steps to access REST API from Javascript


Marco Delato (512114) | asked Jul 10 '12, 6:43 a.m.
edited Mar 21 '13, 12:00 p.m. by Ralph Schoon (59.6k23643)
Hi All,
In order to customize an attribute I need to get some detailed information from a workitem, i.e. workitem owner's username and workitem project area name (title).
As I can't access these information by Workitem API (I only access to the User handle and Project Area Handle) I'm trying to use REST API, but I get some Authentication Problems.
In https://jazz.net/forum/questions/80941/how-can-i-retrieve-list-of-project-areas-in-xml-form-using-httpclient-library?page=1&focusedAnswerId=81022#81022 there are some hints but they are not enough for me.

My questions are:
- What are the authentication steps to access REST API using com.ibm.team.workitem.api.common.connectors.HttpConnectorParameters from dojo Javascript?
- Is there any example of a script that authenticates and access REST API using HttpConnectorParameter methods?
- Is there any alternative way to get those info?

Thanks in advance,
Marco Delato

One answer



permanent link
Ralph Schoon (59.6k23643) | answered Mar 21 '13, 12:02 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
For Marco, or anyone who searches and finds this: see this blog post around this. It is also mentioned in this workshop.

Your answer


Register or to post your answer.