We are trying to set up a JIRA project with multiple teams including client facing team(Team A), product(Team B) , development team (Team C) and operations(Team D). I would like to know if there is an option to setup the project in such a way, that the comments posted by Team A, should be visible to Team B and D and should not be visible to Team C. Also, the comments posted by Team C, should be visible to team B and D and should not be visible to Team A. If yes, could you please point me in the right direction, how to set this up?
Hello,
You can restrict comment to groups and roles. If you want to automate this process, you would need a scripting app like Power Scripts, ScriptRunner and so on.
If you want to use the Power Scripts app, then you could create a listener on the issue commented event, where you would check the group of the user and restrict the created comment to the required group.
Then code for your listener would look like this:
if (userInGroup(
"Team A"
,
currentUser()
)
) {
JComment jcomment = getLastComment(
key
);
editComment(key, jcomment["id"], jcomment["text"], "TeamA");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.