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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How should one organise his groovy code (that is used in different post functions)



We have multiple postfunctions with groovy code. Now we deploy the code everytime in every groovy function. But doing so, we duplicate code and at the end we have no overview anymore from a central place where the code is used.

How can we organise it in a better way?

1 comment

Tansu Akdeniz Community Leader Jun 07, 2018

Hi @Marc De Vos [CSI - PM],

You can see all scripts used in the system;

  • Go to built-in scripts
  • Script registry than RUN.

*Btw, it is always good to write your code into the .groovy file instead of putting as an inline script. Than put your files to JIRA_HOME/scripts directory and reference the path in workflow postfunction. So, you can easily manage your codes in central place.

Tansu Akdeniz

I believe the question was for JMWE. Unfortunately, JMWE for Jira Server doesn't yet support shared scripts (unlike JMWE for Jira Cloud). Please vote for JMWE-538, and don't hesitate to add a comment explaining why you need it.


Log in or Sign up to comment
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

297 views 0 2
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