Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

steps to access REST API from Javascript

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

1 vote



One answer

Permanent link
For Marco, or anyone who searches and finds this: see this blog post around this. It is also mentioned in this workshop.

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 10 '12, 6:43 a.m.

Question was seen: 6,298 times

Last updated: Mar 21 '13, 12:24 p.m.

Confirmation Cancel Confirm