Script runner (or alternative) to run calculations after bulk edit

Hi,

I'm facing a huge problem. Currently I'm calculation a custom field "defect value / serverity" based on the values of certain other custom fileds using the behavious plugin.

Now my customer wants to edit one of these field by bulk edit every release. That should trigger the behaviour or the calculation to re-calculate my defect value. Is there any possibility other than developing a plugin etc. to get around that problem?

Maybe a temporary global transition with the calculation as a post-function...

Thanks for any help,

Christian

1 answer

1 accepted

1 votes

Can't you use a calculated custom field? If it's the case that the value is calculated but then can be overridden by the user, then use the behaviours plugin. Otherwise, a calulated custom field is the better option.

Script runner plugin has "scripted fields", should you wish to use groovy.

Well, I have the code used in my behaviour.. Could I use the same code on a scripted field? I mean basically what I'm doing is running the same script on every custom field used to calculate my defect value in case on is getting updated.

Not the same code but similar.

Don't need to calculate anymore. Maybe I can get back to you if I need to create some scripted fields... Thanks anyway

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,790 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot