It's all about the answers!

Ask a question

[RTC EWM] I want to get the list of created queries using API.


HIROAKI JOSAKO (31116) | asked Jun 07, 3:41 a.m.

I think we create and use it every day.
I want to get the name and URL of that shared query.
Ideally it can be obtained using the REST API.
It is intended to automate exports and remove randomly created unwanted queries.

I am waiting for your idea.

Thanks

One answer



permanent link
Ralph Schoon (58.2k23642) | answered Jun 07, 7:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 07, 7:10 a.m.

 Please see: https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Using_Stored_Queries



The headers you use decide if you get the queries just by link, or get the queries with more information.

As an example Accept:text/xml has worked best for me. 

Request GET https://elm.example.com:9443/ccm/oslc/queries/_MV9ncHHZEeuKHaIVR_wUnA/rtc_cm:results
Request Headers
    Accept text/xml; charset=utf-8
    


Comments
Ralph Schoon commented Jun 07, 7:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Your answer


Register or to post your answer.