Forums

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

Scriptrunner: perform calculations

Laura Vallejo April 4, 2022

It is possible to use scriptrunner as an excelsheet?

 

There is a field "a" and a field b. Can I show in the field "c" the result of:

c = a + b

¿Is it possible to do in real time?

 

Thank you very much!

2 answers

0 votes
César Muñoz April 11, 2022

.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2022

Yep, you might want a quick look at https://community.atlassian.com/t5/Jira-questions/to-automatically-replenish-Duedate-by-Severity-when-creating-an/qaq-p/1990926 - it's got more complex (date) calculations in it as an example, you should be able to simplify it down quite easily.

César Muñoz April 11, 2022

Thank you for your answer, Nic.

However, we are using Jira Cloud, and the suggested solution imports three classes (com.atlassian.jira.component.ComponentAccessor, com.atlassian.jira.issue.MutableIssue, com.atlassian.jira.event.type.EventDispatchOption) which aren't available for Jira Cloud (we get messages like "unable to resolve class com.atlassian.jira.issue.MutableIssue").

Is it possible to show the calculated results in real time on Jira Cloud?

Thank you!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2022

Scripts for server don't work on Cloud, you have to do it very differently.

I should have given you this instead: https://library.adaptavist.com/search?platforms=cloud

Suggest an answer

Log in or Sign up to answer