Recently we had to open a Service Project up more to our internal employees and now most of them are creating issues in Jira Software instead of through the portal. However, they get confused when they see too many Request Types in Jira Software.
I know how to hide an issue's request type from users in the Portal. However, is there a way to hide that same request type in Jira Software?
Thank you.
The following script can be added as a behaviour:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.roles.ProjectRoleManager
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
import static com.atlassian.jira.issue.IssueFieldConstants.ISSUE_TYPE
@BaseScript FieldBehaviours fieldBehaviours
def projectRoleManager = ComponentAccessor.getComponent(ProjectRoleManager)
def allIssueTypes = ComponentAccessor.constantsManager.allIssueTypeObjects
def issueTypeField = getFieldById(ISSUE_TYPE)
def availableIssueTypes = []
availableIssueTypes.addAll(allIssueTypes.findAll { it.name in ["Incident","Question","Improvement","Problem","Task" ] })
issueTypeField.setFieldOptions(availableIssueTypes)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.