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 (62.0k33643)
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 there are some hints but they are not enough for me.

My questions are:
- What are the authentication steps to access REST API using 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 (62.0k33643) | answered Mar 21 '13, 12:02 p.m.
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.