-
Notifications
You must be signed in to change notification settings - Fork 104
Description
Hello there!
We are using your jasper REST client to manage our Jasper environments. One task I've had recently was to do a bulk update of data sources, switching from one type to another.
In the end I had to go through all items that could depend on a data sources AbstractClientDataSourceHolder and interrogate if they depended on the data sources I wanted to replace.
The API itself includes a dependOn search parameter which would have returned a list of items that I needed to work with. The following was sent to me by TIBCO support:
Identifying resources dependent on a Data Source: in addition to the article Support suggested in case 01562271, you can use dependsOn parameter together with other parameters, which are part of the REST API (https://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v64/resources-service#Searching_the_Repository). Here's an example for my local instance: http://localhost:8080/jasperserver-pro/rest_v2/resources?type=semanticLayerDataSource&dependsOn=/public/Samples/Data_Sources/FoodmartDataSourceJNDI
I can confirm that using the REST API directly gives me the list of resources I need.
As far as I can tell, adding "dependsOn" to the ResourceSearchParameter would add support for this useful feature. Is this something you could consider adding?