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 ?

1 answer

Suggest an answer

Log in or Sign up to answer
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