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

...

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=lfRedirect+-+15480485
widthauto

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
languagejs
lfRedirect("https://www.cprimeappsappfire.com/");

Redirecting to Jira dashboard:

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

Example 2

Redirecting to the the DEMO  project project page:

Code Block
languagejs
lfRedirect("DEMO");

Redirecting to the the DEMO-1  issue issue page:

Code Block
languagejs
lfRedirect("DEMO-1");

See also

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