Create Project Area in DNG via OSLC REST Apis
Hi,
|
2 answers
That's the correct API call and it's returning the correct response. Do you have permission to view the project area? And did you use a valid template (I'd think it would return an error if you didn't but it might be worth checking). Can you find the project via the REST API via Project Area Collections? https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi?sortcol=3;table=3;up=0#Project_Areas_collection Comments As for permission to view: My user is a JazzAdmin at the JTS level, so I assume it should have permissions to view project areas as I can see all the project areas created by myself and others while using the web UI (this does not include the projects I've received 201 Created status via REST apis)
Donald Nong
commented May 25 '17, 6:39 a.m.
The returned "location" looks quite funny - it is like "https://clm603.example.com:9443/rm/linkTypes/_BPLCoUE1EeeiU_FP2rtfzg". So it is definitely incorrect. I'm pretty sure the namespace being used is incorrect, but I don't know what should be used, yet.
Avery Granum
commented May 25 '17, 11:04 a.m.
Thanks for the tip Donald, I've double checked the documentation and noticed the namespace:
I've retried the POST call with both namespaces and gotten the same 201 Created response with the linkTypes uri for the resource location. So unfortunately it looks like the same false positive response.
|
I don't see a <visibility> tag in your request body. I don't know what this value defaults to. If you login as something other than a JAZZ_ADMIN and the "access" param is not "public", you wouldn't see the projects. Are you logging into the web UI as a JAZZ_ADMIN or as the user from the auth header of your POST? See the request body example of the POST from the link you provided. |
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.