It's all about the answers!

Ask a question

How to fetch users added in a particular project area with their details


Sanjeet Pattnaik (1514) | asked Apr 05 '19, 12:06 a.m.

 Hi Team,

<o:p> </o:p>

<o:p>   </o:p>

I am trying to fetch the details of users who are/were added to a particular project area. <o:p> </o:p>

For this I am following the blog mentioned on jazz.net. <o:p> </o:p>

<o:p>   </o:p>

According to this, the steps followed are: <o:p> </o:p>

  1. Get details from https://<RTC_URL>/ccm/rootservices   <o:p> </o:p>
  2. Applying xpath to get the URL from the tag <jp06:projectAreas rdf:resource="https://<RTC URL>/ccm/process/project-areas" /> <o:p> </o:p>
  3. Then hitting the URL  https://<RTC URL>/ccm/process/project-areas/<PA_Backend_Name>/members <o:p> </o:p>

However, URL’s in step 2 and 3 are giving 406-Not acceptable error. <o:p> </o:p>

<o:p>   </o:p>

Kindly let me know if the steps followed by me are correct or not. <o:p> </o:p>

If not, let me know the process to get the user details such as name, mailto, roles, archival details for a particular project area. <o:p> </o:p>

<o:p>   </o:p>

Thanks, <o:p> </o:p>

Sanjeet

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Apr 05 '19, 3:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 06 '19, 9:16 a.m.

 Basically this works for me.

Get the rootservices.
Get the work item catalog
Get the project area process URI from the service providers details e.g. https://clm.example.com:9443/ccm/process/project-areas/_WjsbsKVQEeiCt9y1kOVIWQ
Get the URI you retrieved. From the result find the members-url

Note the project are name is not a part of the URI to the members. The project area UUID is.


Comments
Ralph Schoon commented Apr 05 '19, 3:48 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Also, use Eclipse Lyo instead of XPath. See https://rsjazz.wordpress.com/2019/03/07/type-system-manager-part-2/ for some hints and example code. 

Your answer


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