Forums

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

Upgrading to Jira Server 8?

Devlin Kleber August 13, 2020

Hello,

 

I've been tasked to upgrade our JIRA 7.12 to latest LTS but, I'm seeing a lot about deprecated code for Script Runner. Is there a way to find all workflows, or script using the deprecated code? We have a fairly large instance of JIRA and it wasn't well taken care of in the past.

 

Thank you.

Devlin

2 answers

1 vote
Matt Doar
Community Champion
August 13, 2020

Well if you have access to the Jira database you can search for Behaviours that use specific classes such as ComponentManager with SQL such as

select propertyvalue from propertyentry join propertytext on propertyentry.id = propertytext.id where property_key like "%Behaviour%" and propertyvalue like "%ComponentManager%";

and for workflows you can check with

select workflowname from jiraworkflows where descriptor like "%foo.bar%";

Perhaps ScriptRunner has  a better way to bundle all it's uses in one place and then you can check that?

0 votes
Nic Brough -Adaptavist-
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.
August 13, 2020

Scriptrunner has a pile of what we call "canned scripts" - scripts we've built in as part of the product because our product owners think a good chunk of our customer base would like them.  It's also got a load of no-script functions - things where you can say "use the SR function for ...", put in some configuration but not write any code.

Mostly, you do not need to think about what I call no-script functions during upgrades - the configuration for them remains the same, and newer versions of Scriptrunner understands the config, so you can ignore those.

But for your own scripts, one of the "canned scripts" is the script registry.  Run that, and you'll get a list of every single script that you have written for your system.  It will tell you where it is used and allow you to edit it directly.

It's not quite what you want - the registry will not tell you if a script has deprecated code.  But at least you have one single place to look, with the option to use ctrl-f in the browser if you have specific words to look for, and links to edit them if they need it.

Devlin Kleber August 17, 2020

I did find the Script Registry it pulled up 214 workflows and crashes my browser every time I try to comb through them. Is there a code version of Script Registry with a filter for Warning or something? Thank you for answering.

Suggest an answer

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

Atlassian Community Events