You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

On this page

This type of read-only custom field has a value which is dynamically calculated from a custom math/time expression. It can be used to obtain a date-time value depending on the value of other fields in current issue or in any other issues (linked issues, sub-tasks, epics, stories, JQL selected issues, etc).

Configuration

Edit Math/Time Expression

This parameter contains a valid math/time expression that will be calculated each time the value of the field is required.

The math/time expression is expected to return a numeric value that represents a moment in time as the milliseconds elapsed since January 1, 1970, 00:00:00 GMT.

See example below.

Example: Date-Time of creation of an epic

In this step by step example we will create a calculated number field called "Date-Time creation of Epic" that will return the date-time of creation of the Epic issue. When the current issue does not have an Epic issue, a null is returned and no value is shown.

Create a new Calculated Date-Time Field custom field and name it properly

Providing a description will help you to identify what the custom field does but this step is optional

Parser expression

Add the following expression:

Date/Time expression for Calculated date/time field:
first(fieldValue({00009}, linkedIssues("has Epic")))

{00009} is code for numeric value of Date and time of creation field.

To achieve this, the following functions have been used:

Once configured, the new custom field should look like this:


If you still have questions, feel free to refer to our support team.