Renders a link to a project on a Sonar service.
Description
Renders a link to a project on a Sonar server.
The macros purpose is to specify the reference to the Sonar server at one place (as a Confluence shortcut or space property) and reuse this URL throughout the usage of this macro.
Properties
System Identifier
Identifies the connection information via Confluence shortcuts or space properties.
Defaults to sonar
.
The system identifier is checked at three locations
The search for the system connection information is conducted as follows. Use the URI discovered first to connect to the server.
- Check for a space property
url-sonar
- Check for a space property
sonar
Only available with projectdoc Toolbox version 1.11 and up! - Check for a space property
shortcut-id-sonar
.
Lookup the connection information from the shortcut links with the value retrieved from the space property. - Check the shortcut links for a value
sonar
. - Check application navigator for a value
sonar
.
If no value is specified at any of the locations above, the macro renders an error message like this:
In this example for a system macro the referenced, but undefined system, is called test-repo
.
Service
The service on Sonar to reference.
If not specified the value defaults to a space property named sonar-service
. If this again is not specified, it defaults to /dashboard/index
.
Please note that the service is required to start with a slash.
Options
The options to append to the URL.
The '?
' to separate the request parameters will be added by the system.
Label
The label for the link. Defaults to the name of the project.