BIRT - Hyperlink to run a dynamic work item query
Hi,
I have a chart aggregating a list of workItem IDs based on some filter criteria... I want to execute an existing dynamic query (by the hyperlink magic) passing on a set of workItem IDs. I created a (dummy) dynamic query (w/ some number of columns to be displayed). When I run this in the webclient, I'm asked to pass on a list of IDs.. and resulting in the appropriate display. Q: Is there a way to pass on the relevant IDs from a Birt report if the customer clicks on the chart bar via the hyperlink magic? Any help/suggestions appreciated. Guenther |
One answer
You will get the exact same error if you try to open the link in a browser. The internal API that you try to use is a POST operation, but with "clicking" or "pasting" the link, you are doing a "GET" operation. There is no guarantee that you can achieve the same functionality with a GET operation.
|
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.
Comments
Additional details:
The request I'm using using jsonParameterValues is as follows:
https://xxxxx:8052/jazz/web/projects/yyyy #action=com.ibm.team.workitem.runSavedQuery&id=_G5Pj8GTqEeW_a_znQFYvCQ&filterAttribute=id&jsonParameterValues={"id2":{"attributeId":"id","operator":"is","values":[200009,200010],"variables":[]}}&maxResults=50&projectAreaItemId=_xNY7cMzrEeCeP-edQ3dTlQ&startIndex=0
This was copied from info I extracted from firebug... I always get the following error:
Error: com.ibm.team.repository.web.transport.ServiceRequest(): invalid requestParameters parameter: [object Object]
What am I doing wrong?
Guenther
In addition I clicked together a query in the browser and tried to reuse the generated https request - but failed w/
Error 400: CRJAZ1175I Unable to get method info from service call.
Detailed URL:
https://xxxxx:8052/jazz/service/com.ibm.team.workitem.common.internal.rest.IQueryRestService/getResultSet?columnIdentifiers=workItemType&columnIdentifiers=id&columnIdentifiers=summary&columnIdentifiers=owner&columnIdentifiers=internalState&columnIdentifiers=internalPriority&columnIdentifiers=internalSeverity&columnIdentifiers=modified&filterAttribute=&filterValue=&jsonExpression={"operator":"AND","attributeExpressions":[{"attributeId":"id","operator":"is","values":[200000,200009],"variables":[]}],"termExpressions":[],"similarityExpressions":[]}&maxResults=50&projectAreaItemId=_xNY7cMzrEeCeP-edQ3dTlQ&sortColumns=modified&sortDirections=false&startIndex=0
What am I doing wrong?
Guenther