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
Community Members
Community Events
Community Groups

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 Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

329 views 0 7
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