Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

REST or OSLC Query for TeamArea/something

Greetings,


After hitting a wall with using the REST API to query for work items for a given team (I tried teamArea/itemId=, teamArea/name=, and teamArea/uniqueId=, but those are all non-queryable), I am beginning to think there is not a simple way to query for work items by Team Area using the REST API.

Is there a way to simply query for work items by name using either OSLC or REST? I am fine with either. Although, the OSLC API is complex enough that I typically use REST for my little tools and custom reports.

Thanks,
Dave

0 votes



2 answers

Permanent link
Hey Dave,
If you want to search a workitem using its id, the simple query is:


You can get the uuid from the project catalogue.
The above query will give you list of project areas with its services.xml


0 votes


Permanent link

 For complex queries, you could use an RTC stored query or JRS report. 


To programmatically execute an RTC stored query and get XML, see Using Stored Queries.

To programmatically execute a JRS report, you dan use the data service URL available from the Export report to Microsoft Excel page (e.g., https://jazz.net/rs/query/22769/dataservice?report=22556&limit=-1&basicAuthenticationEnabled=true) or you can capture the query from the Format Results tab in Report Builder and execute it against the LQE SPARQL endpoint.

The problem with OSLC queries is that many of the fields you are looking for (e.g., team area) are URLs, not string names.

0 votes

Comments

 This seems like it could be a good answer. Is there any way to filter what attributes I need returned? I am seeing a gigantic amount of attributes I do not need to access with this tool I am building, so the giant response is slow and inefficient.

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,935
× 7,494
× 515
× 478
× 62

Question asked: Sep 11 '19, 11:13 a.m.

Question was seen: 3,218 times

Last updated: Sep 11 '19, 3:44 p.m.

Confirmation Cancel Confirm