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: 

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

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
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.

DEPLOYMENT TYPE
SERVER
VERSION
9.16
TAGS
AUG Leaders

Atlassian Community Events