Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Power Scripts for Jira Cloud
Results will update as you type.
  • Packages
  • Array Functions
  • Basic Functions
  • Date and Interval Functions
  • Excel Functions
  • File Manipulation Functions
  • HTTP Functions
  • Incoming Mail Processing Functions
  • Integration with Other Systems
  • Jira Administration Functions
  • Jira Integration Functions
  • Jira Service Management Functions
  • Jira Software Functions
  • Listener Functions
  • Math Functions
  • Parameter Functions
  • Scheduling Functions
  • String Functions
    • Encryption and Encoding Functions
    • allMatches
    • chop
    • contains
    • endsWith
    • executeTemplate
    • hashString
    • indexOf
    • isAlpha
    • isAlphaNumeric
    • isDigit
    • isLower
    • isNumeric
    • isUpper
    • join
    • lastIndexOf
    • length
    • matchEnd
    • matches
    • matchReplace
    • matchStart
    • matchText
    • replace
    • split
    • startsWith
    • substring
    • toLower
    • toUpper
    • trim
  • System Integration
  • Webhooks Functions
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    replace
    Updated Nov 19, 2024

    replace

    Description

    Replaces the search_str string with replacement_str in str and returns the resulting string. The string str is not modified.

    Parameters

    Return Type

    String

    Examples

    Example 1

    wret = replace("foobar", "foo", "bar"); print(wret);

    Print barbar

    Example 2

    wret = replace("aaa", "aa", "b"); print(wret);

    Print ba

    See also

    • Page:
      split
    • Page:
      executeTemplate
    • Page:
      trim
    • Page:
      replace
    • Page:
      matchStart
    • Page:
      lastIndexOf
    • Page:
      isUpper
    • Page:
      length
    • Page:
      contains
    • Page:
      matchReplace
    • Page:
      isDigit
    • Page:
      hashString
    • Page:
      chop
    • Page:
      toLower
    • Page:
      join
    • Page:
      indexOf
    • Page:
      startsWith
    • Page:
      endsWith
    • Page:
      matchEnd
    • Page:
      isLower
    • Page:
      isAlpha
    • Page:
      matches
    • Page:
      isNumeric
    • Page:
      isAlphaNumeric
    • Page:
      substring
    Peacock

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 14, "requestCorrelationId": "8aca220fe68e4eb9b86c9041cfa9d973"}