Skip to end of banner
Go to start of banner

lfRedirect

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Availability

This routine is available since

  1. Power Scripts 2.5.6 (Jira 5.x) and 2.6.1 (Jira 6.x)
  2. katl-commons 2.5.8 (Jira 5.x) and 2.6.1 (Jira 6.x)

Syntax

lfRedirect(url);

Description


Redirects to the specified URL.


If the url parameter represents a project or issue key, will redirect to its page, that is "<jira_base_url>/browse/<issue_or_project_key>".

Parameters

ParameterTypeRequiredDescription
urlStringYesThe redirect URL.

The url parameter can be:

  • a Jira relative path (eg. "/secure/Dashboard.jspa")
  • a issue key (eg. "DEMO-1")
  • a project key (eg. "DEMO")
  • a full path URL (eg. "http://www.google.com")

Example

Redirecting to our Kepler's products site:

lfRedirect("http://jira-plugins.kepler-rominfo.com");

Redirecting to Jira dashboard:

lfRedirect("/secure/Dashboard.jspa");

Redirecting to project "DEMO" page:

lfRedirect("DEMO");

Redirecting to issue "DEMO-1" page:

lfRedirect("DEMO-1");

See also

  • No labels