Is there a way to search through all ScriptRunner scripts to see if they contain a string value?
I've noticed that a previous developer hard-coded field values in some scripts. I need a way to ensure I do not break legacy code if I change the values of a Select List (single choice), for example.
I logged a ticket with Adaptavist, see response below:
https://productsupport.adaptavist.com/servicedesk/customer/portal/23/SRJCLSUP-4896
Hi @Jacques B ,
can you report here the response because I haven't permission to view this request?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andrea Pannitti , below is the response from Adaptavist Support.
Than you for creating a support ticket with our team,
Unfortunately on ScriptRunner for Jira Cloud there is no straight forward way to achieve this, as we do not currently provide a report to generate a list of all these scripts and configurations in one central place as we do in the Server version with the Script Registry built-in script that it provides.
This means that the only way to get this information is to manually review your instance in order to check every location where you can configure the features provided by ScriptRunner.
Listed below is every location that you will need to check in order to be able to document all of these scripts. Please note for point 6 we have created a new Workflows page and on this, you will be able to click the ... icon next to each item and then edit it from this page in order to view the script inline which will save you some time as you won't need to need manually load and navigate through each workflow.
Steps to find out where ScriptRunner for Jira Cloud Scripts and Configuration is used:
We have a public-facing feature request to create a report to show where all scripts are used inside of our backlog here and I would ask you to vote on this request if you believe that is useful to your company.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jacques B ,
you could call this rest in POST:
/rest/scriptrunner/latest/canned/com.onresolve.scriptrunner.canned.jira.admin.ScriptRegistry
and then search your string in the json response.
Or, alternatively, look directly into the ScriptRunner Registry. You can found it in ScriptRunner Settings clicking on 3 dots.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response.
I tried the request with Soap UI, but get a 404. Is there something obvious I'm doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jacques B,
sorry, only now I noticed you're on cloud and my solution is for server or data center.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Andrea Pannitti
That is a useful trick for troubleshooting broken scripts.
I can search the error message within all the scripts at one go :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.