Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

Supported list types

Table of Contents
exclude(Supported list types).*
stylecircle
typeflat
separatorpipe


Number list

UI Text Box
sizemedium
typeinfo

This function combines two number lists.

The order of elements is respected and the result may contain duplicates.


UI Text Box
typetip
If you want to avoid duplicates, use the function union().


Code Block
languagebash
titleSyntax
linenumberstrue
append(numberList1, numberList2) #Output: Number list


UI Expand
titleExamples


fieldValuetimeSpent}, linkedIssues("is blocked by")), fieldValue({issue.timeSpent}, subtasks())) with Total time Spent (in minutes) in blocking issues and sub-tasks.fieldValue
  • linkedIssues()
  • subtasks()
  • Parser expressionDescription


    Code Block
    languagebash
    linenumberstrue
    %{append([1, 2, 3], [3, 4, 5])}


    This example returns

    [1, 2, 3, 3, 4, 5]


    Code Block
    languagebash
    linenumberstrue
    %{append(
    toNumberList(%{issue.
    versions.id}),toNumberList(%{issue.fixVersions.id}))}


    This example returns a number list

     of both affected and fix version/s id/s of the current issue, e.g. 

    10002,10000,10001,10002 

    To achieve this, the following functions are used:



    text-box
    ui-
    typetip

    This number list can be summed using function sum().

    ui-expand
    titleAdditional information

    Parameters used in this function

    ParameterInput (data type)Description
    numberList1

    Status
    subtletrue
    titlenumber list

    Any given number list.
    numberList2

    Status
    subtletrue
    titlenumber list

    Any given number list.



    UI Expand
    titleOutput

    This function returns a

    Status
    subtletrue
    titlenumber list
    .

    If both lists are empty, the function returns an empty 

    Status
    subtletrue
    titlenumber list
    .



    Text list

    UI Text Box
    sizemedium
    typeinfo

    Variant for text lists.


    Code Block
    languagebash
    titleSyntax
    linenumberstrue
    append(textList1, textList2) #Output: Text list


    UI Expand
    titleExamples


    fieldValuefixVersion, subtasks() fieldValuefixVersion}, linkedIssues("is blocked by") with Fix Version/s of all sub-tasks and blocking issues.subtasks
  • fieldValue()
  • linkedIssues()
  • Parser expressionDescription


    Code Block
    languagebash
    linenumberstrue
    %{append(["blue", "red", "green"], ["red", "green", "yellow"])}


    This example returns

    ["blue", " red", " green", " red", " green", " yellow"]


    Code Block
    languagebash
    linenumberstrue
    %{append(
    toStringList(%{issue.
    versions}
    ),
    toStringList(%{issue.
    fixVersions}))
    }


    This example returns a text list

     of both affected and fix version/s of the current issue, e.g. 

    1.1,1.0,2.0,1.1 

    To achieve this, the following functions are used:



    UI Expand
    titleAdditional information

    Parameters used in this function

    ParameterInput (data type)Description
    textList1

    Status
    subtletrue
    titletext list

    Any given text list.
    textList2

    Status
    subtletrue
    titletext list

    Any given text list.



    UI Expand
    titleOutput

    This function returns a

    Status
    subtletrue
    titletext list
    .

    If both lists are empty, the function returns an empty 

    Status
    subtletrue
    titletext list
    .



     Issue list

    UI Text Box
    sizemedium
    typeinfo

    Variant for issue lists.


    Code Block
    languagebash
    titlesyntax
    linenumberstrue
    append(issueList1, issueList2) #Output: Issue list


    UI Expand
    titleExamples


    Parser expressionDescription


    Code Block
    languagebash
    linenumberstrue
    %{append(linkedIssues("is blocked by"), subtasks())}


    This example returns an issue list of blocking issues and sub-tasks.

    If a sub-task is also linked with issue link type "is blocked by", it will appear twice in the output list.

    To achieve this, the following functions are used:



    UI Expand
    titleAdditional information

    Parameters used in this function

    ParameterInput (data type)Description
    issueList1

    Status
    subtletrue
    titleissue list

    Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).
    issueList2

    Status
    subtletrue
    titleissue list

    Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).



    This function is the equivalent to the list operator APPEND and can be used interchangeably. 
    UI Expand
    titleOutput

    This function returns an

    Status
    subtletrue
    titleissue list
    .

    If both lists are empty, the function returns an empty 

    Status
    subtletrue
    titleissue list
    .

    UI Text Box
    typetip



    Image AddedUse cases and examples

    Page properties report
    firstcolumnUse case
    headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
    cqllabel = "parser_func_append" and space = currentSpace()


    Page properties
    hiddentrue



    Status
    Tech review

    Status
    colourGreen
    titledoneTODO

    Style guide

    Green
    Status
    colour
    titledoneTODO

    Status
    titletodo
    Status
    colourYellow
    titleReady for review
    Status
    colourGreen
    titledone
    Status
    colourRed
    titleflagged



    Page properties
    hiddentrue


    Short description

    Combines the elements of two lists.

    Output

    Status
    subtletrue
    titlenumber list
     
    Status
    subtletrue
    titletext list
     
    Status
    subtletrue
    titleissue list

    Available since

    Status
    subtletrue
    colourBlue
    title2.14.210

    Label