Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How does agile poker worked in jira?

ADEEL AHMED
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 25, 2023

Agiles poker

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 8, 2018

It should be like this:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.crowd.embedded.api.Group
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.user.ApplicationUser
import com.onresolve.jira.groovy.user.FormField
import com.atlassian.jira.user.util.UserUtil
import com.atlassian.jira.security.groups.GroupManager
import java.util.List
import com.atlassian.jira.ComponentManager


def groupManager = ComponentManager.getGroupManager()
def currentUser = ComponentAccessor.JiraAuthenticationContext.getLoggedInUser()

return groupManager.isUserInGroup(currentUser,"JIR_ADMIN") || groupManager.isUserInGroup(currentUser,"JIR_SCRUM ") || groupManager.isUserInGroup(currentUser,"JIR_SCRUM  MASTER") ... and so on for all groups.

Also you should name groups as they are name in Jira. It is case sensitive.

Deleted user
June 8, 2018

Hi @Alexey Matveev,

Thanks For your suggestion. Again I am facing the problem. None of the group users are able to create an issue in Jira.

Regards,

Shubhanshu

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events