Is it possible to hide some issue types on the create screen for specific user groups?
For example, I have 'bug', 'epic', 'story', 'task', 'test', 'architecture task', 'analysis task' in the list of available issue types:
I want to be able to display only 'bug' issue type for testers.
Is it possible to achieve in JIRA?
No, that is a big constraint of JIRA. This forum has so many posts asking for the same. Just do a search.
Could you please post at least one link to the related question or jira issue? I could manage to find one. Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Google search gave me this, (but I guess you will be disappointed that there no real solutions in any of these)
https://answers.atlassian.com/questions/33259/permission-to-create-specific-issue-type
https://answers.atlassian.com/questions/118786/how-to-disable-the-issue-type-in-jira
https://answers.atlassian.com/questions/33436/any-workarounds-to-do-permissions-by-issue-type
https://answers.atlassian.com/questions/109710/controlling-the-visibility-of-issue-types
https://jira.atlassian.com/browse/JRA-5865
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergey,
I solved this issue using Script runner's behavior, used below code in initializer and it showed Issuetypes based on logged in user, you can validate user against project roles or even groups
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.roles.ProjectRoleManager
import static com.atlassian.jira.issue.IssueFieldConstants.ISSUE_TYPE
def projectRoleManager = ComponentAccessor.getComponent(ProjectRoleManager)
def allIssueTypes = ComponentAccessor.constantsManager.allIssueTypeObjects
def user = ComponentAccessor.jiraAuthenticationContext.loggedInUser
def issueTypeField = getFieldById(ISSUE_TYPE)
def availableIssueTypes = []
//use this def and if code to check project roles
/*def remoteUsersRoles = projectRoleManager.getProjectRoles(user, issueContext.projectObject)*.name
if ("Testers" in remoteUsersRoles)
{
availableIssueTypes.addAll(allIssueTypes.findAll { it.name in ["Task", "Experiment"] })
}
*/
//use this def and if code to check groups
def remoteUsersRoles = ComponentAccessor.getGroupManager().isUserInGroup(user, "jira-administrators")
if (remoteUsersRoles) {
availableIssueTypes.addAll(allIssueTypes.findAll { it.name in ["Task", "Experiment"] })
}
else {
availableIssueTypes.addAll(allIssueTypes.findAll { it.name in ["Task"] })
}
issueTypeField.setFieldOptions(availableIssueTypes)
Hope this helps.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.