Versions Compared

Key

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


Section


Column
width30%600px


Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1



Column




Purpose

This post-function allows to do almost any math and time calculation you can imagine using any system or custom field values, in current issue or any other related issue (linked issue, sub-tasks, JQL selected, etc). This feature uses the Expression Parser.



Example 1: Set field using fields on linked issues and sub-tasks

In this example we set custom field "Story Points" in our Epic with the sum of values of custom field "Story Points" in related stories and sub-tasks:

Image ModifiedText to be parsed is: sum(fieldValue({10025}, subtasks())) + sum(fieldValue({10025}, linkedIssues("is Epic of")))


Note that:

  •  {10025} is code numeric value of "Story Points" custom field in the particular Jira instance of this example

Once configured, post-function looks like this:




Example 2: Date-Time Calculation

Time calculations are made based on the fact that Date and Date-Time system or custom fields return the number of milliseconds elapsed since January 1, 1970, 00:00:00 GMT.

Let's see how to calculate the number of whole days elapsed since issue creation:

Image ModifiedText to be parsed is: floor(({00057} - {00009}) / {DAY})


Note that:

  • {00057} is code for numeric value of "Current date and time"
  • {00009} if code for numeric value of "Date and time of creation"

Once configured, post-function looks like this:


Examples of Math and Time Expressions


Usage Examples

Incoming Links
labelsexample



Related Features