urlEncode

urlEncode

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Syntax

urlEncode(textToEncode)

Description

Encodes text in URL format. This is useful when constructing a URL address used by a REST command.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

textToEncode

string

Yes

Text to encode in URL format.

Return type

String

Returns the input text URL format

Example

string addon = "power scripts"; string url = "https://marketplace.atlassian.com/search?query="; string urlText = urlEncode(url + addon); return urlText;

Returns https://marketplace.atlassian.com/search?query=power%20scripts

See also