There are a lot of old answers out there and only a few obscure answers using the current API
https://community.atlassian.com/t5/Answers-Developer-Questions/Script-Runner-Post-Function-Permission-Checking/qaq-p/542213 is the old answer and it would be so cool to be able to just add a new answer.
def permissionManager = ComponentAccessor.getPermissionManager()
def hasPerm = permissionManager.hasPermission(new ProjectPermissionKey("TRANSITION_ISSUES"), issue, currentUser)
The list of permissions is in https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/permission/ProjectPermissions.html
This works in conditions and validators
Learn how to use two new reports for next-gen projects in Jira Cloud: Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events