It's all about the answers!

Ask a question

Problem with workitem links in BIRT report


Ethan Vogel (5142) | asked Dec 08 '10, 5:00 p.m.
Any help with this problem would be appreciated ...

I have created a BIRT report that has hyperlinks to RTC work items and there is a problem with the links when running the report from the Eclipse client. According to the info at https://jazz.net/wiki/bin/view/Main/ReportsLinkingAndDrillIn the link should be intercepted and the work item should be opened in the Eclipse work item editor. Instead, what's happening is that when I click on the link, a browser opens and redisplays the report.

It works fine when I run from a web browser.

The client is changing the URL when I run in Eclipse as follows:
(I have changed the server name to xxxxxx in the examples below).

URL in the link when I run the report from the web browser:
https://xxxxxx:9443/jazz/web/projects/9443/jazz/web/projects/Optim%20SOA#action=com.ibm.team.workitem.viewWorkItem&id=15271
This is exactly how I had coded the link and it works fine.

URL when I run the report from the Eclipse client:
https://xxxxxx:9443/jazz/_ajax-modules/com.ibm.team.reports.web.reportViewer/_BCA5kAF_EeCbl4Z7SYiPAw/_GyAEoAMTEeCP6Nfo6C2-zA/undef/true/false#action=com.ibm.team.workitem.viewWorkItem&id=15271
(The stuff in red was put there by RTC/Eclipse)

I am using RTC client 2.0.0.2.

Any idea what's going on?

Thanks

3 answers



permanent link
Brent Barkman (156) | answered Dec 09 '10, 5:44 p.m.
JAZZ DEVELOPER
Hi Ethan,
The stuff in red comes from the use of the serverUrl variable. The reason it looks different is so it can be picked up by our interceptor and display the work item in the work item editor in eclipse.

In the web ui you should get the regular link like you're expecting.

I've modified the work item query rptdesign example from Reports Central (https://jazz.net/wiki/bin/view/Main/ReportsCentral) in our wiki to include an example of this. You can download the rptdesign file at https://jazz.net/wiki/pub/Main/ReportsCentral/Work_Item_Query_Linking.rptdesign

Hope that helps.

permanent link
Ethan Vogel (5142) | answered Dec 10 '10, 1:27 p.m.
Hi Brent -

My code is exactly the same as your code (I've pasted mine below so you can confirm). My point is this: It works fine in the Web, and I understand that the stuff in red meant to cause the eclipse work item editor to be used ... but when I click on the link in Eclipse, the work item editor is not invoked -- what happens instead is that the whole report comes up in a browser. So seems that the interceptor is not working.

If my explanation of what's happening isn't clear, I could demo it quickly in a web meeting if you have the time.

Thanks,
Ethan

var serverURL = reportContext.getAppContext().get("SERVER_URL");
if (serverURL == null) serverURL = "";
var url = serverURL + "#action=com.ibm.team.workitem.viewWorkItem&id=" + row;

permanent link
Brent Barkman (156) | answered Dec 11 '10, 5:58 p.m.
JAZZ DEVELOPER
For anyone else reading this post, Ethan and I had resolved the problem, the issue was that the link was set to open in a new window (target=_blank) which gets missed by the interceptor, the target needs to be _self. I have opened work item 147991 (https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/147991) for this.

Your answer


Register or to post 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.