Hello Atlassian community,
I have a project where we've got a 'QA Notes' tab on our Findings issue type screen. This tab has a QA Notes field on it where our QA group would like to add notes, but only have people in the QM group have access to edit and see those notes/tab.
Here's what I've added via the ScriptRunner Behaviours:
Mappings are to the project and specific issue type.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
def groupManager = ComponentAccessor.getGroupManager()
if ('isUserinGroup QM' == 'false') {
hideTab(2)
}
I've tried it with and with/out the import/def ...and I've found that if I just use
if ('isUserinGroup QM') {
hideTab(2)
}
...the tab is hidden, but it's hidden to even the QM group. I don't know what I'm doing wrong here...any help is greatly appreciated.