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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

119 views 0 4
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