Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,888
Community Members
 
Community Events
168
Community Groups

How do I determine the amount of time a custom script takes?

Adithya S I'm New Here Aug 23, 2022

Hey yall!

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.

 

Thanks,
Adithya

1 answer

1 accepted

1 vote
Answer accepted
WW Rising Star Aug 23, 2022

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.

Console

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:


timingtab.png


Jobs, Listeners, Workflows, etc.

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.

History/Timing

You can see the Timing information by clicking History:


history.png


Then under Timing (you may need to scroll down):


timing.png


Performance

You can see Performance by clicking on the chart icon under Performance:


performance.png


A pop-up screen with performance charts will appear. You can change the Duration and Nodes (for Data Center).


performancecharts.png


If this was helpful, please accept the answer.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events