Scripts written using groovy runner free versions are valid in script runner paid versions right?

Sandesh Shetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2019
We are using script runner 3.0.10 free version. We written some scripts using this plugin. And we are upgrading script runner to 5.5.7 paid version because we are upgrading jira too. So if we upgrade the script written before (using free version of script runner) will works fine in paid version of script runner right?

2 answers

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 15, 2019

Yes and no.

The scripts themselves will work if you were only upgrading Script Runner.  But it's quite likely that you are upgrading Jira as well, and the API in Jira may change in ways that stops your scripts working.  There are big changes in the API between 6 and 7 for example - you'll probably need to amend every script that looks at users.

Sandesh Shetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2019

is there any api changes between 7.6.1 to 7.13.3?

Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 17, 2019

No really,

In addition to what Nic said: from changes between 7 and 8 you will need to amend scripts  that retrieve data using a JQL search.

1 vote
Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 15, 2019

Hi Sandesh Shetty,

Groovy scripting by Script Runner relies on Jira Java API, so your code will work if you upgrade Script Runner third-party app, but may fail if you upgrade Jira since each Jira version introduces some changes in the Jira Java API.

Big changes come from upgrade Jira from / to a major version, that is, from Jira 6.x to Jira 7.x or from Jira 7.x to Jira 8.x

I suggest you to use a staging environtment first to perfom the upgrade and tune your groovy scripts if needed.

Kind Regards.

Sandesh Shetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2019

is there any changes in api 7.6.1 to 7.13.3?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events