About Jira modules
Customer portal
Project settings UI locations

URL routing

Available:

The URL routing plugin module is available in JIRA 6.0 and later.

Purpose of this Module Type

The URL routing plugin module allows add-ons to map any URL to one of their own choosing.   For more information, please see Guide - Using pretty URLs in a JIRA plugin.

Configuration

The root element for the URL routing plugin module is routing. It allows the following attributes and child elements for configuration:

Attributes

Name

Description

path

The top level URL path that will be matched for further routing. No route rules will be executed if the start of the URL does not string match this path

Required: yes

Default: N/A

key

The unique identifier of the routing module.

Required: yes

Default: N/A

Elements

Name

Description

route

Defines the routes you want to have in place

Required: yes

Default: N/A

Route

Routes are how you switch from from a desired URL pattern to an actual internal one.

Attributes

Name

Description

from

The URL pattern you want to route from. This is your desired pretty url pattern

You can use jax-ws syntax here in the URL pattern

Required: yes

Default: N/A

to

The existing URL to which you want the pretty URL to go.

You can use jax-ws syntax here in the URL pattern

Required: yes

Default: N/A


verbs

The HTTP verbs that will be selectively routed. if you don't specify anything then all HTTP verbs will be routed.

The allowable verbs are get, put, post, head, delete, options and patch.

Required: yes

Default: All HTTP verbs are routed

URL Routing example

This is a routing entry that causes a url like http:``//localhost:2990/jira/prettyurls/are/cool to be routed to http://localhost:2990/jira/secure/HorribleName.jspa?variableGoesHere=cool

1
2
<routing key="prettyurls-key" path="/prettyurls">
    <route from="/are/{variableGoesHere}" to="/secure/HorribleName.jspa"/>
    <route from="/can/{variableGoesHere}" to="/secure/HorribleName.jspa"/>
</routing>

For more examples see Guide - Using pretty URLs in a JIRA plugin

Rate this page: