The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Adithya S
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 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.

TAGS
AUG Leaders

Atlassian Community Events