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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

203 views 1 3
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