Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with

  1. Power Scripts 2.5.6 for Jira 5.x and Power Scripts 2.6.1 for Jira 6.x (server)
  2. SIL Engine (former katl-commons) 2.5.8 for Jira 5.x and 2.6.1 for Jira 6.x

Syntax

lfRedirect(url);

Description

Excerpt
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

lfRedirect(url)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Redirects to the specified URL.

...

Parameters

...

Redirects to the specified URL.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

url

String

Yes

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")

...

Return Type

None

Examples

Example 1

Here's an example with a redirect to our Products website:

Code Block
lfRedirect("https://www.cprimeappsanovaapps.com/");

Redirecting to Jira dashboard:

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

Example 2

Redirecting to the the DEMO  project project page:

Code Block
lfRedirect("DEMO");

Redirecting to the the DEMO-1  issue issue page:

Code Block
lfRedirect("DEMO-1");

...

Filter by label (Content by label)
showLabelsfalse
max3525
showSpacefalse
sorttitle
cqllabel = "lf_routine" and space = currentSpace ( )
labelsarray_routines