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
        • arrayAddElement
        • arrayAddElementIfNotExist
        • arrayDeleteElement
        • arrayDeleteElementAt
        • arrayDiff
        • arrayElementExists
        • arrayFind
        • arrayFindBinary
        • arrayGetElement
        • arrayIntersect
        • arrayKeys
        • arrayKeySort
        • arraysConcat
        • arraySetElement
        • arraySize
        • arraySort
        • arrayStructMap
        • arrayStructSort
        • arrayToSet
        • arrayUnion
        • excludeSubarray
        • subarray
      • 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
      • 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.
    /
    arrayDeleteElementAt
    Updated Aug 08

    arrayDeleteElementAt

    Syntax

    arrayDeleteElementAt(array, index)

    Package

    array

    Alias

    deleteElementAt(array, index)

    Pkg Usage

    deleteElementAt(array, index)

    Description

    If index is less than the array size, returns a new array without the element at the specified index.

    Parameters

    Parameter name

    Type

    Required

    Description

    Parameter name

    Type

    Required

    Description

    array

    Array

    Yes

    Array the element at the specified index is deleted from.

    index

    Number

    Yes

    Index of the element to be deleted.

    Return Type

    Array

    Examples

    Example 1

    if(size(watchers)>= 2){ watchers2 = deleteElementAt(watchers, 1); }

    The result returned by the function is assigned to a new array watchers2, so the initial array watchers will not be modified.

    Example 2

    if(size(watchers)>= 2){ watchers = deleteElementAt(watchers, 1); }

    The result returned by the function is assigned to the the same array watchers, so the initial array watchers will be modified.

    See also

    • Page:
      arraySetElement
    • Page:
      arrayDiff
    • Page:
      arrayKeys
    • Page:
      arraySize
    • Page:
      arrayUnion
    • Page:
      arrayDeleteElement
    • Page:
      arrayStructMap
    • Page:
      arraysConcat
    • Page:
      arrayElementExists
    • Page:
      arraySort
    • Page:
      arrayGetElement
    • Page:
      arrayAddElementIfNotExist
    • Page:
      arrayToSet
    • Page:
      arrayStructSort
    • Page:
      arrayFindBinary
    • Page:
      arrayDeleteElementAt
    • Page:
      arrayAddElement
    • Page:
      arrayFind
    • Page:
      arrayIntersect
    • Page:
      subarray
    • Page:
      excludeSubarray
    • Page:
      arrayKeySort
    Peacock

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 16, "requestCorrelationId": "d7443736866e4a45ab0324fb52f74c2d"}