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,560,113
Community Members
 
Community Events
185
Community Groups

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

Dear,

 

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 07, 2018

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.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events