How to fetch and populate streams and baselines in custom attribute of work item based on GC Project area?
Hello,
One answer
You will need to use Ajax to make REST calls to GCM. See https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding for public GCM REST APIs. That page has a link to https://jazz.net/gc/doc/scenarios which describes the operations you can perform and includes examples.
Comments
Hello David, I tried the above links. I am able to understand the GC API's, but when I am trying to make an API call (using dojo) I am getting errors. I tried dojo.xhrGet and XMLHttpRequest() as well but both of them are not working.
I suggest you start by using web browser plugins such as Postman or RESTed. Get that working to achieve what you want first. As far as the Dojo error is concerned, that's a Dojo question not a Jazz question. There are plenty of online resources that provide tutorials for Ajax from Javascript or Dojo.
Comments
David Honey
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 13 '23, 10:13 a.m.You will need to use Ajax to make REST calls to GCM. See https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding for public GCM REST APIs.
Rohit Goyal
Jul 13 '23, 11:38 a.m.Hello David,
David Honey
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 13 '23, 11:40 a.m.If you followed the link I gave, you will see there is a link to the GCM REST API pages, one of which is https://jazz.net/gc/doc/scenarios which describes the operations you can perform and includes examples.