Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a read-only computed field

Lilly Mannerswood May 25, 2020

Hi,

I'm trying to create a computed field on my issues that has a value computed from other fields.

For example, I have 3 fields:
- Width
- Height
- Depth

And I want to create a computed field named "Volume":
i.e.:
{{issue.Width * issue.Height * issue.Depth}}

How do I go about achieve this?

Thanks!

2 answers

0 votes
Marlene Kegel - codefortynine
Atlassian Partner
October 28, 2020

Hello @Lilly Mannerswood ,

With our Jira cloud app Dynamic Fields for Jira you can create dynamic fields that can extract and compute data from the issue and its history.

It is possible to create a computed "volume" field as you describe and use it for reporting and JQL. The expression for your custom dynamic field would look like this:

issue.customfield_10000 * issue.customfield_10001 * issue.customfield_10002

Make sure to replace the custom field IDs with the correct ones of your Jira instance.

If you need help in creating a custom dynamic field, don't hesitate to get in touch with our support.

0 votes
Carlos Garcia Navarro
Community Champion
May 25, 2020

Hi @Lilly Mannerswood ,

You need a plugin to do this. There is this post that explains how you could solve a similar problem using Scriptrunner:

https://community.atlassian.com/t5/Adaptavist-questions/Can-Scriptrunner-calculate-the-number-value-of-a-custom-field/qaq-p/710495

Hope it helps,

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events