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
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.