Versions Compared

Key

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


Excerpt
hiddentrue

You can execute different operations using formulas in the gird. the formula is based on JavaScript.

This guide shows how to use formulas create a formula column in the Table Grid Next Generation for Jira Cloud. A Formula is a separate column type based on JavaScript. The

You can input formula inside embedded JavaScript Editor and get results on the grid view. The grid can process formula logic and display formula results . To use a formula in a gird, add a separate column using formula column type, input .

Configuration

Input formula inside embedded embedded JavaScript   Ace Editor and get results on the grid.

You can It's possible to execute different operations using formulas in the gird. Use JavaScript to create . To create the formula expression use JavaScript

Let's create the formula column:

Prerequisites: configured gird and columns. You need other columns in the grid to create a formula expression. 

...

  1. Add a new column to the grid, using formula column

...

  1. type 

...


  1. Image Modified

...

  1. Input column's details:

    Column type - select Formula type.
    Identifier -

...

  1. a unique variable to identify the column. Required field - you can set the desired value here.
    Title - 
    column title, displayed in the grid. 

...

  1. Column IDs - list of existing columns' IDs. Use in order to create a formula.
    Formula expression - embedded JavaScript editor, where you

...

  1. need to input

...

  1. your formula

...

  1. .

...

  1. Uses Ace Editor, which highlights the syntax
    Summary Label - label name, that will be used in the column summary.
    Aggregation operation -  select aggregation operation of the column data: sum, average, min/max or custom formula.
     
  2. Input the formula, based on the

...

  1. grid columns' IDs.

    Warning
    titleAttention

    Use column IDs in the formula expression.

    Code Block
    languagejs
    themeEclipse
    titleFormula code example
    if($(calculate)){
        return $(salary) + $(bonus)
    } else {
        return $(salary)
    }
Info
titleError types in the formula column type
  • #error - syntax error

  • #type - operation error (operation could not be executed using different column types)



  1. Save changes.

Congratulations! You just created your first formula column. Now you can use formulas in the Table Grid Next Generation for JIRA Cloud.


Check more examples on the formula configuration page.

...