Forums

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

Calculate sum of values selected in a checkbox field on another field

Rakshatha Shetty July 22, 2020

I have a custom field of type checkbox, each option in the field has a value to it. I want to calculate the total count based on the values selected on another field.

Eg:

Custom Field Name: Languages (Type: checkbox)

Custom Field Values: JAVA, Python, Groovy, Ruby

As per our process each language has a value say JAVA - 2, Python - 3, Groovy - 1 , Ruby - 4

If JAVA & Groovy are checked by the user then have another custom field "Total Value (type: numeric)", then value in this field should be 3

Is there a method to do this ?

1 answer

0 votes
David Fischer
Community Champion
July 23, 2020

Hi,

are you on Jira Server/Data Center or Cloud? On Server/DC, you can use a third-party app such as JMCF or ScriptRunner to create a calculated field whose value will be calculated by a simple formula.

David

Rakshatha Shetty July 23, 2020

Hi David,

I'm on JIRA DC, we have Script runner plugin installed but aren't able to come with the script to calculate the desired output.

Regards

David Fischer
Community Champion
July 23, 2020

Unfortunately, I'm not familiar with ScriptRunner, I could only help you with JMCF, which uses a simplified API.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events