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 | |
---|---|---|---|---|
1 | textToEncode | string | Yes | Test 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);
Returns https://marketplace.atlassian.com/search?query=power%20scripts
See also