The Scriptrunner plug-ins have the ability to hide some of their own functionality. I.E. if you disable the modules "Display %" modules like "Display Script Console Web Item" and "Display Fragments" the hyperlinks to these pages are hidden. However, this does not actually hide those pages. If you navigate to another page, like "Built In Scripts", you can see the tabs / pages displayed in the frame for the web items that have been "hidden".
Has anyone been able to either:
FYI - We have not been able to create a URL rewrite rule in Tomcat that works sufficiently, because when you start on another tab, like "Built In Scripts" and then select "Console" you are not actually navigating to that console page.
Thank you!
Hi @Jim Cupples
Depending on which ScriptRunner product you are using? I am assuming ScriptRunner for Jira? You can achieve what you are looking for using the Script Edit Permission:
https://scriptrunner.adaptavist.com/latest/jira/settings.html
When you don’t have edit permission, the Script Console tab is hidden and all other script editors are in readonly mode.
Please let me know if this helps resolve your requirements?
Kind regards,
Robert Giddings
Product Manager, Adaptavist
@Robert Giddings [Adaptavist] I suspect he wants to allow admins to edit scripts in workflows etc, but restrict access to the console only. Using the permission mechanism, admins would lose the ability to edit all scripts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Robert Giddings [Adaptavist] We are looking into ScriptRunner for Jira and ScriptRunner for BitBucket. For example, we want the ability to restrict access to certain pages or completely remove those pages in certain environments, like production, while allowing access to other pages. One example is to completely remove the script console page and all of its functionality as it brings in security vulnerabilities. Hiding the Navigation does only that, hides the navigation. It does not prevent a person from accessing the pages with hidden navigation.
However, the ability to migrate / install scripts we would want to allow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jim Cupples ,
Thank you for your reply.
As mentioned above, the standard approach to this in ScriptRunner for Jira is to use the Script Edit Permission functionality documented here:
https://scriptrunner.adaptavist.com/latest/jira/settings.html
This will hide the Script Console and disable editing of other script edit boxes such as on Workflows etc.
However for ScriptRunner for Bitbucket this functionality does not currently exist at this time.
Repository admins do have limitations in terms of the API they can access when they write scripts due to security concerns.
Also, both ScriptRunner for Jira and ScriptRunner for Bitbucket both have audit logging, so you can track configuration changes.
ScriptRunner for Jira's audit logging is documented here: https://scriptrunner.adaptavist.com/latest/jira/audit-logging.html
ScriptRunner for Bitbucket's audit logging is documented here: https://scriptrunner.adaptavist.com/latest/bitbucket/audit-logging.html
I will also look at ways in which we can improve this area of the product.
I hope this helps a little in what you are trying to achieve?
Kind regards,
Robert Giddings,
Product Manager, ScriptRunner for Bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jim Cupples ,
As a way of an update, please see the latest changes to what is now available regarding ScriptRunner Permissions in the docs here:
ScriptRunner for Jira: https://scriptrunner.adaptavist.com/latest/jira/settings.html
ScriptRunner for Confluence: https://scriptrunner.adaptavist.com/latest/confluence/settings.html
ScriptRunner for Bitbucket:
https://scriptrunner.adaptavist.com/latest/bitbucket/settings.html
In all ScriptRunner products, you can restrict Script Editing to just Sys Admins and a specified group of regular Admins. And can also disable the Switch User script.
In addition, in ScriptRunner for Confluence you can edit the Space Admin Permissions.
And in addition, in ScriptRunner for Bitbucket you can restrict Project and Repository scripts to only Global Admins.
Please let me know if you still have any additional permissions requirements beyond those already available in the product?
Kind regards,
Robert Giddings,
Product Manager, ScriptRunner for Bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Giddings [Adaptavist]Thank you for this update. I would like to pass it along to my team and review it with them.
Jim Cupples
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Giddings [Adaptavist] it would be really nice if script edit permission could be granted to a group but only in the context of workflows so that:
1) Only System admin can edit global scripts
2) Other users specified by groups (could be jira-admins or non-admin) can still edit workflow script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Giddings [Adaptavist]Is this limited configuration available in Cloud? I couldn't find it. We want to enable the build-in scripts for the Project managers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Daniel Alonso ,
Currently ScriptRunner for Jira Cloud does not have this functionality.
However, the ScriptRunner for Jira Cloud team have a Nolt board, where new features can be requested.
You can find the Nolt board here: https://scriptrunner-for-jira-cloud.nolt.io/
Kind regards,
Robert Giddings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might be able to achieve this with some scripted fragments.
1) a custom web panel wit a condition based on the current user's attribute to insert a meta tag that will indicate if the user has permission to the console or not
2) a custom javascript resource that includes some simple javascript to examine the meta tag created in #1 and hide the tab if warranted
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.