It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

scriptrunner groovy check whether user has permission in a project

There are a lot of old answers out there and only a few obscure answers using the current API is the old answer and it would be so cool to be able to just add a new answer.

1 answer

1 accepted

0 votes
Answer accepted
import com.atlassian.jira.component.ComponentAccessor

def permissionManager = ComponentAccessor.getPermissionManager()
def hasPerm = permissionManager.hasPermission(new ProjectPermissionKey("TRANSITION_ISSUES"), issue, currentUser)

 The list of permissions is in

This works in conditions and validators

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

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 ...

303 views 1 3
Join discussion

Community Events

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

Events near you