I’ve implemented the behaviour script to hide the "Issue type3" and "issue type4" issutype from the dropdown selection. It’s working as expected in Firefox—those issue types are hidden.
However, in Chrome, the issue types are still visible in the dropdown but when one of them is selected, the script automatically switches it to a different issue type, so the logic is partially working. I’m not sure what’s going wrong in Chrome.
Any tweaks to the script. My jira is on data center 9.12.19
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.security.roles.ProjectRoleManagerimport static com.atlassian.jira.issue.IssueFieldConstants.ISSUE_TYPEdef issueTypeField = getFieldById(ISSUE_TYPE)def projectRoleManager = ComponentAccessor.getComponent(ProjectRoleManager)def availableIssueTypes = []availableIssueTypes.addAll(["issue type1", "issue type2 etc"])issueTypeField.setFieldOptions(availableIssueTypes)
Hi @Sudheer Kumar ~ I've not personally experienced that behavior, but you may want to reach out to Adaptavist to determine if they can reproduce (to log it as a Bug).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.