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

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

🚦 Zephyr Squad-Marketplace Apps Atlympics ⚽

Hi Atlympics, have you tried this add-on for Jira- "Zephyr Squad". If not than it's one of the known and popular plugin for  test management activities. Link to the plugin: zephyr squad&...

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