How do I assign the value of a custom Contributor attribute in RTC to a variable in RPE?
I have only been able to find contributor data in two places:
I have not been successful accessing the data in either repository from within RPE.
In both cases I get an error when running the report that the engine “Cannot access to the OAthentication URL”
I am currently drilling down through two paths in the repository to get the itemId for whenever I can get at the contributor data.
From here, I want to use myItemId to filter the correct value out of either repository, but I can’t figure out the query to get at it. I’m concerned it might not be in the original query at all because ‘contributor’ is at the same level in the hierarchy as ‘workItem.’ My best guess so far has been:
But I haven’t been able to add a query for ‘/workitem/contributor’ anywhere in the report that doesn’t break the report.
I have also tried getting the value from the REST API, but I must be missing something, because all I end up with is the string value of the URL.
|
Accepted answer
You can either use the query workitem/workItem/itemExtensions or workitem/workItem/allExtensions. If you are using the query workitem/workItem/itemExtensions, workitem/workItem/itemExtensions/value/itemId will give the itemId for the contributor, that can be used in the (native) filter for the 2nd request. For the Data Source Configuration, you can set URI property that evaluates to https://server:port/ccm/rpt/repository/foundation
Marshall Smith selected this answer as the correct answer
Comments
Subramanya Prasad Pilar
commented Dec 04 '17, 12:28 p.m.
Please note that workitem/workItem/itemExtensions/value/reportableUrl is like https://<server>:<port>/ccm/rpt/repository/workitem/contributor/itemId/<ItemId>. We need to replace "/workitem" with "/foundation". If you are using filter in RPE template, only https://server:port/ccm/rpt/repository/foundationcan be set as the URI for the foundation data source.
Marshall Smith
commented Feb 15 '18, 11:02 a.m.
Thank you for your reply! This answer got me to successfully generating the report.
Subramanya Prasad Pilar
commented Feb 15 '18, 11:28 a.m.
You can of course hide the foundation data source. Are you generating document through RPE Launcher or RTC? Since the data source name "RTC Foundation" starts with "", it should be hidden from RTC report wizard. In RPE, you need to set "Configuration required" property to "hidden" so that it will be hidden.
|
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.