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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script runner code length is too high....?


I wrote a code in groovy for one of post function. It'll run using script runner add-on. 

When it was added in post function then it shows a warning as "It looks like you're adding a lot of code to your post function. This may cause jira to stop loading post function page for this transition. Try creating more post functions with less code instead."

Please let me know if it can stop my post function to work correct. 

Mostly lines in code are commented by me as well. 

Can It impact my script to run ?


2 answers

0 votes
Nir Haimov Community Leader Apr 30, 2020

@Hi @Narendra Kumar 

I never encountered this issue, so can't tell for sure.

Why not just remove the commented and unnecessary code?

Or splitting the code as the error message suggest?

0 votes

This check is a simple one based purely on the size of the script.  It doesn't look at the code, or differentiate between lines that would run and lines that do nothing, it just assumes every line will do something, and hence take longer.

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

748 views 2 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you