We are trying to optimise our Jira performance and I'm trying to find out which of our many custom scripts are contributing to the slowness. I was wondering if there was any way I could determine the amount of time taken by at a script to run to completion.
I've tried logs and chrome dev tools both of which didn't help much.
Granted, these are manual methods and may take a little while if you have a lot of scripts, but if you have some suspects, I'd start there.
If you have script that can be run in the Console, you can see the amount of time a script takes to run under the Timing tab:
If your script is in a Job, Listener, Field, JQL Function, Workflow, and most of the places you can put a script, go to one of the those tabs in ScriptRunner.
You can see the Timing information by clicking History:
Then under Timing (you may need to scroll down):
You can see Performance by clicking on the chart icon under Performance:
A pop-up screen with performance charts will appear. You can change the Duration and Nodes (for Data Center).
If this was helpful, please accept the answer.