{"action":"created","issue":{"url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/171","labels_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/171/comments","events_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/171/events","html_url":"https://github.com/Jaspersoft/jrs-rest-java-client/issues/171","id":123025511,"number":171,"title":"How to create a report unit with datasource references","user":{"login":"RamyaSridhara","id":16355617,"avatar_url":"https://avatars.githubusercontent.com/u/16355617?v=3","gravatar_id":"","url":"https://api.github.com/users/RamyaSridhara","html_url":"https://github.com/RamyaSridhara","followers_url":"https://api.github.com/users/RamyaSridhara/followers","following_url":"https://api.github.com/users/RamyaSridhara/following{/other_user}","gists_url":"https://api.github.com/users/RamyaSridhara/gists{/gist_id}","starred_url":"https://api.github.com/users/RamyaSridhara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RamyaSridhara/subscriptions","organizations_url":"https://api.github.com/users/RamyaSridhara/orgs","repos_url":"https://api.github.com/users/RamyaSridhara/repos","events_url":"https://api.github.com/users/RamyaSridhara/events{/privacy}","received_events_url":"https://api.github.com/users/RamyaSridhara/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-18T21:02:35Z","updated_at":"2015-12-19T00:43:08Z","closed_at":"2015-12-19T00:43:08Z","body":"I am trying to create a reportunit \r\n  OperationResult<ClientResource> createNewRUResponse = jasperSession\r\n\t            .resourcesService()\r\n\t            .resource(reportsPath)\r\n\t            .createNew(unit); \r\n\r\nClientReportUnit does not take in datasource reference.Meaning refer to already created datasource in the server instead of creating a new one.\r\nis that possible with this client library?\r\n"},"comment":{"url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/comments/165928039","html_url":"https://github.com/Jaspersoft/jrs-rest-java-client/issues/171#issuecomment-165928039","issue_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/171","id":165928039,"user":{"login":"yaroslav-kovalchyk","id":9320045,"avatar_url":"https://avatars.githubusercontent.com/u/9320045?v=3","gravatar_id":"","url":"https://api.github.com/users/yaroslav-kovalchyk","html_url":"https://github.com/yaroslav-kovalchyk","followers_url":"https://api.github.com/users/yaroslav-kovalchyk/followers","following_url":"https://api.github.com/users/yaroslav-kovalchyk/following{/other_user}","gists_url":"https://api.github.com/users/yaroslav-kovalchyk/gists{/gist_id}","starred_url":"https://api.github.com/users/yaroslav-kovalchyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaroslav-kovalchyk/subscriptions","organizations_url":"https://api.github.com/users/yaroslav-kovalchyk/orgs","repos_url":"https://api.github.com/users/yaroslav-kovalchyk/repos","events_url":"https://api.github.com/users/yaroslav-kovalchyk/events{/privacy}","received_events_url":"https://api.github.com/users/yaroslav-kovalchyk/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T00:43:08Z","updated_at":"2015-12-19T00:43:08Z","body":"Yes, it's possible. Please use ClientReference in a following way:\r\nunit.setDataSource(new ClientReference(\"/your/data/source/uri\"));\r\nPlease reopen if it doesn't work."}}