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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

354 views 0 6
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