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.
  • Get started
  • Configuration guides
  • Integration guides
  • Feature guides
  • Advanced features
  • Migration resources
  • Simple Issue Language
    • Getting started with SIL
    • SIL reference guide
    • SIL Functions library
      • Function Index
      • 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
  • Tutorials and recipes
  • Jira Product Discovery support
  • Release notes
  • Help and support
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    String Functions
    Updated Aug 20

    String Functions

    This section contains functions that enable users to handle strings.

    Functions Summary

    • Encryption and Encoding Functions —  This section contains functions that enable users to handle encryption and encoding of text strings.
    • allMatches — Returns all the matches or empty string if the regex doesn't match anything
    • chop — Returns nmb characters from str, starting with the leftmost character.
    • contains — Returns true if character expression str2 is in character expression str1.
    • endsWith — Returns true if str1 ends with str2.
    • executeTemplate — Executes a template. All variables already defined in the script are passed to that template.
    • hashString — Returns a consistent hash to be used across systems.
    • indexOf — Returns the index of the first match of the str2 in str1 or -1 if str2 is nowhere to be found in str1.
    • isAlpha — Returns "true" if the provided argument str is a string containing only letters.
    • isAlphaNumeric — Returns "true" if the provided argument str is a string containing only letters and digits.
    • isDigit — Returns "true" if the provided argument str is a string containing only digits.
    • isLower — Returns "true" if the provided argument stris a string containing only lowercase letters.
    • isNumeric — Returns "true" if the provided argument stris actually a number.
    • isUpper — Returns "true" if the provided argument str is a string containing only upper letters.
    • join — Returns the string obtained by concatenating all the strings from the array using the provided delimiter.
    • lastIndexOf — Returns the index within a string of the last occurrence of the specified substring.
    • length — Returns the length of the provided string, 0 if the string is null or has no chars.
    • matchEnd — Returns the position where the match ends or -1 if it doesn't match.
    • matches — Returns "true" if character expression string matches the regular expression regex.
    • matchReplace — Uses a regex expression to find and replace text within a string.
    • matchStart — Returns the position where the match starts or -1 if it doesn't match.
    • matchText — Returns the text matched or empty string if it doesn't match.
    • replace — Replaces the search_str string with replacement_str in str and returns the resulting string.
    • split — Returns the array of strings computed by splitting this string around matches of the given regular expression.
    • startsWith — Returns "true" if str1 starts with str2.
    • substring — Returns substring is starting at index start and stop at index stop.
    • toLower — Returns the string only with lower case letters.
    • toUpper — Returns the string only with upper case letters.
    • trim — Returns a trimmed copy of the string passed as parameter with the leading and trailing whitespaces removed.

     

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 14, "requestCorrelationId": "fe64647b44664f9aadc29afb8ab120d2"}