Calculated Field Post Function

Description

The Calculated Field post function calculates field value based on the formula configured for all related issues. 

Looking for the Global Calculated Fields post function? See the deprecation information page.

Configuration

Example configuration of the Calculated Fields post function.

Precondition

If you are using preconditions with a JSU post function, they can be evaluated in the following ways:

  • True (Precondition must be true to execute the post function)

  • False (Precondition must be false to execute the post function)

Learn more about JSU preconditions in Workflow Preconditions or see our use cases for examples.

Issue relation

Related issues for the Calculated Field post function can be identified by one of the following Jira concepts:

  • Issue link: You can define the link type to define which issues will be modified by the operation. If the post function includes the link type is ANY option, the operation will be performed on any linked issues.

  • Parent / Sub-Task: The related issue is either a parent or a subtask of the issue.

  • Epic / Issue in Epic: The other issue is either an epic related by an epic link or it is part of an epic. This is only applicable if you have Jira Software installed.

  • JQL: A JQL query will be executed to retrieve the issues the post function will modify. You can use some placeholders in the JQL query, which will be replaced with the current field values of the issue in transition. For tips on writing the JQL query, see JQL Reference or our JQL Use Cases for some examples.

Formula

To define your formula, select the field on which the calculated value will be set, then enter your desired formula. You can select other fields, numbers, and mathematical expressions to calculate the formula. For example, you can select Total story points to display the sum of story points for all the issues in an epic. See Calculated Field formulas for more information.

Example formula used in the procedure described on this page.