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
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
For Marco, or anyone who searches and finds this: see this blog post around this. It is also mentioned in this workshop.