This page contains answers to frequently asked questions posed by Fisheye/Crucible developers.
Feel free to comment, make submissions, or pose your own question on Fisheye/Crucible Development here.
Q: I'm getting the error "API access is disabled" as a response from fisheye/api/rest/repositories on my installation. How do I enable the API as a Fisheye administrator?
A: There is a toggle to enable the API under "Server Settings" in the web admin interface. See Configuring the Fisheye web server for more details.
Q: Is there any way to return unique results from an EyeQL query?
A: It is not currently possible to return unique results. An improvement request exists: FE-1136. Your vote and comments on that issue are appreciated.
Q: How do I use AUI on a page generated by a servlet plugin module?
A: Fisheye 2.4 and earlier don't include AUI by default, so your servlet will need to explicitly include it. There are two ways to do this:
In Fisheye/Crucible 2.4 and later, specify that the context of its page decorator requires the com.atlassian.auiplugin:ajs
resource. i.e. your atlassian-plugin.xml
file should include:
1 2<web-resource key="aui"> <dependency>com.atlassian.auiplugin:ajs</dependency> <context>atl.general</context> </web-resource>
assuming your generated page will request the atl.general
decorator.
If you are rendering a velocity template, include $webResourceManager.requireResource('com.atlassian.auiplugin:ajs')
in your template.
Rate this page: