Any example on the subject request will help me understand how to do it using scriptrunner. Which classes do i need to use?
Thanks
in the context of using scriptrunner this did the trick:
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.security.Permissions import com.atlassian.jira.user.UserProjectHistoryManager def upm = ComponentAccessor.getComponent(UserProjectHistoryManager.class) def p = upm.getCurrentProject(Permissions.BROWSE, ComponentAccessor.jiraAuthenticationContext.loggedInUser) return p.name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.