Scripted Fields run code regardless of being on screen or field configuration

We have noticed that our scripted fields code is being hit with every issue regardless of the field being on the screen or being hidden in the field configuration. We use many scripted fields and this can cause a drag on the system. Can you tell us why that is is happening and if there is a way to stop it?

1 answer

1 accepted

This is already logged (somewhere in https://jamieechlin.atlassian.net/browse/GRV). I don't know why jira requests the value for fields regardless of whether they are on the screen or not, but it does... there's nothing I can do about it.

Bummer I just ran into this. My jira instances are being reviewed for performance problems, and Atlassian said basically "Dude - you are running a lot of scripts" --- I ended up checking access logs, and I am seeing script runner invoked for every issue, regardless of whether a scripted field is in play.

I heard mention that there may be code work arounds, or things you can do with end points.. Any general tips?

Atlassian support can be a bit lazy. A script only gets compiled once then it's just a class. Would they say "dude, you're using a lot of plugins, or you're using too much greenhopper" ?

But it's possible your scripts are written badly, or a calculated field is not suitable for whatever you're doing.

There is a rest endpoint hit for every issue you view... it's a negligible overhead but you can turn that module off if you want. Post the line and I'll confirm.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

330 views 0 1
Read article

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