You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.