Page History
Page properties | |||||
---|---|---|---|---|---|
| |||||
Tech review |
| ||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
size | medium |
---|---|
type | info |
This type of read-only custom field has a value which is dynamically calculated from a custom text expression. It can be used to show a text composed from one or more field values returned by field codes.
type | tip |
---|
You can also create any custom text value depending on the values of other fields in current issue, the current issue or in any other issues (linked issues, sub-tasks, epics, stories, or any other issue in your Jira instance selected by a JQL query.JQL selected issues, etc).
Learn more about working with Texts.
Configuration
Configuring a calculated text field is straightforward. You just have to configure a valid parsing mode and add a parser expression, which will "calculate" the output.
UI Steps | ||
---|---|---|
|
Configuration
Parsing Modes
Info | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||
There two parsing modes available:
| ||||||||||||||||||||||||||||||||||||||||||
Automatic parsing mode converter: You can write your text in basic mode, and then switch to advanced mode. The text to be parsed will be automatically rewritten as a string expression. Now, you can simply make the modifications you require, making use of text formatting functions or inserting math or time expressions where needed. | ||||||||||||||||||||||||||||||||||||||||||
|
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Text to be parsed
Info | ||
---|---|---|
| ||
This parameter contains the text expression that will be parsed in the selected parsing mode. |
Example: Calculated Text Field "Components of Sub-tasks"
Info | ||
---|---|---|
| ||
In this step by step example we show how to create a calculated text field called "Components of Subtasks" that will contain a comma-separated list with the components of the current issue's sub-tasks. |
Create a new Calculated Text Field custom field called "Components of Sub-tasks"
Head over to Administration → Issues
→ Custom fields → Add custom Field → Advanced → Calculated Text Field (by JWT)
UI Step |
---|
On the configuration screen of the newly created custom field go to Actions and click on Configure |
UI Step |
---|
Click on Edit Text Expression |
Configure the field by selecting the Advanced parsing mode and then enter a text to be parsed. After the configuration, click on save
UI Text Box | ||
---|---|---|
| ||
The text expression used in this example is: To achieve this, the following functions are used: |
Finally, the configuration of the new custom field should look like this:
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|