The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scriptrunner migrating to Jira Cloud - Where do you put your common code?

Daniel Garcia
October 12, 2025

If I have a common class do I cut and paste it into every script that uses it ?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
October 14, 2025

Hi Daniel, 

I can confirm that, currently, there is no way to share common code in Jira Cloud. However, we are working on a feature called Script Manager, which will allow you to store code in files that can be reused across features. 

This will be released in the near future, and you can monitor the release notes to stay informed on when it is released. 

Regards,

Kristian

0 votes
Valerie Knapp
Community Champion
October 13, 2025

Hi @Daniel Garcia , thanks for your post.

Please take a look at Script Variables and Script Fragments here -

https://docs.adaptavist.com/sr4jc/latest/features/script-variables 

https://docs.adaptavist.com/sr4jc/latest/features/script-fragments 

You can also reach out to Adaptavist for support for the migration but they have a lot of information already here in their website

https://docs.adaptavist.com/sr4js/latest/scriptrunner-migration/migrating-to-cloud/rewriting-scripts-for-cloud-hints-and-tips 

I hope this helps you.

Cheers

Daniel Garcia
October 13, 2025

From what I can tell from the documentation:

  • Script variables seems to be for global variables (constants), things like credentials
  • Script fragments seems to be the equivalent of UI Fragments
TAGS
AUG Leaders

Atlassian Community Events