It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Scriptrunner for Bitbucket - need docu

Matthias Serfling Oct 28, 2017

Hello,

I'm trying to understand the scripting language used in ScriptRunner plugin for Bitbucket. Where can I find a documentation of the used language and the possible functions/properties that can be used related to BitBucket? The only Bitbucket API I currently found was Javascript but that seems not be right one.

 

Thanks,

Matthias

2 answers

1 accepted

1 vote
Answer accepted
Alexey Matveev [cPrime] Community Leader Oct 28, 2017

Hello, 

Adaptivist ScriptRunner uses groovy language which is based on Java platform. That is why you can use pure Java instead of groovy in scriptrunner. Anyway in the end you have to call Bitbucket Java API. 

Searching through the documentation of Bitbucket Java API all the time can influence on your productivity that is why it is better if you setup development environment as it is guided here:

https://scriptrunner.adaptavist.com/latest/bitbucket/DevEnvironment.html

After this setup you can develop in IntelliJ and have hints for Bitbucket Java API. 

Also it is important to mention that scriptrunner is a plugin which gives developers an easier access to bitbucket extensions which were made by bitbucket developers. 

This access is given by entry points (pre-recieve hooks,  post-recieve hooks etc)  which are documented here.

https://scriptrunner.adaptavist.com/latest/bitbucket/

After you get into an entry point you can use Bitbucket Java API.

Here is the reference to Bitbucket Java API

https://developer.atlassian.com/bitbucket/server/docs/latest/reference/java-api.html

0 votes
Tayyab Bashir Oct 28, 2017

Hi,
You can find the documentation for ScriptRunner for Bitbucket on this link

The scripting language ScriptRunner uses is Groovy. 
You can learn more about it on this link

There are other online resources for groovy scripting as well, but the above would be beneficial if you are a beginner to start you off. 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Join our webinar: “Asset Management: The Role of Context in ITSM” with Atlassian & Riada

  Hi Atlassian Community! This is Teresa from the Jira Service Desk team. On June 19th, I’ll be hosting a webinar “Asset Management: The Role of Context in ITSM” with Atlassian Partne...

263 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you