Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,555,708
Community Members
 
Community Events
184
Community Groups

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

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
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 Leaders.
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
AUG Leaders

Atlassian Community Events