Page History
Page properties | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||
|
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
On this page
|
UI Text Box | ||||
---|---|---|---|---|
| ||||
This type of read-only custom field has a value which is dynamically calculated from a custom math/numeric expression. It can be used to obtain a numeric value depending on the value of other fields in the current issue or in any other issues (linked issues, sub-tasks, epics, stories, JQL selected issues, etc). |
Configuration
Math expression
Info | ||
---|---|---|
| ||
This parameter contains a valid math expression that will be calculated each time the value of the field is required. |
Example 1 : Calculated Number Field "Number of Blocking Issues"
icon | false |
---|
Configuring a calculated date-time field is straightforward. You have to configure a valid parser expressions, which will "calculate" the output, and optionally a custom display format.
UI Steps | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Example 2: Calculated Number Field "Time to Due Date"
Info | ||
---|---|---|
| ||
In this example we configure a calculated number field that will show the remaining time for Due Date. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
UI Steps | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
UI Step | Parser expressionAdd the following expression:
UI Step | Check the parameter Uninitialized when calculated value is zero Expand |
|
Example 3: Field to show time since issue creation resolution
Info | ||
---|---|---|
| ||
In this example we configure a calculated number field for showing the time elapsed since issue creation to issue resolution. For issues which are still not resolved, the field will be uninitialized, thus it won't be shown in the view screen. |
Create a new Calculated Number Field (by JWT) custom field and name it properly.
UI Text Box | ||
---|---|---|
| ||
Providing a description will help you to identify what the custom field does but this step is optional |
Parser expression
Add the following parser expression:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{00112} != null ? {00112} - {00009} : null |
title | more info... |
---|
UI Text Box | ||
---|---|---|
| ||
To achieve this the following functions are used:
|
Display format
UI Step |
---|
Choose Duration for Content type |
UI Step |
---|
Choose Long for Duration display format |
Check the parameter Use time tracking settings
title | more info... |
---|
UI Text Box | ||
---|---|---|
| ||
We get the duration displayed using the number of working hours per day, and the number of working days per week as configured in time tracking, instead of 24 hours per day and 7 days per week. |
Finally, the configuration of the new custom field should look like this:
|
Use cases
Need some inspiration? Browse through our use cases.
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|