Forums

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

How do I connect Scriptrunner code I write to Bitbucket

Jon Kocen
Contributor
July 30, 2024

I write Scriptrunner code for my Jira projects. How would I store my code in Bitbucket so I can keep revisions of the code?

1 answer

0 votes
Charlie Misonne
Community Champion
July 31, 2024

Hi @Jon Kocen 

Most Scriptrunner features in Jira allow you to either add the script as "inline" script or to provide the "path" to the script.

I always recommend using the path because indeed you can keep it in Git/ Bitbucket that way.

You should create a directory in your Jira home directory on the server called "scripts" for example (might already exist).
Add all your scritps to this directory in individual files. Push the directory to your Bitbucket repo.
Now you can convert the inline scripts to file path scripts in Jira scriptrunner.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.16
TAGS
AUG Leaders

Atlassian Community Events