Restrict the comment visibility in a team managed project
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
Jira Team-managed projects don't have the same ability to restrict comment visibility that company-managed projects do.
That said, it's possible to create a restricted comment manually via the Jira REST API as a workaround.
Workaround: create a visibility-restricted comment via REST API
Send a POST request to the following API endpoint to add a comment. Note the "visibility" parameter which can be used to limit which Jira users can see the comment.
/rest/api/3/issue/{issueIdOrKey}/comment
{
"visibility": {
"type": "group/role",
"value": "group_name/role_name"
},
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "add comment here",
"type": "text"
}
]
}
]
}
}
Further resources
As this feature does not yet exist, there has already been a feature request ticket logged to add this functionality to team-managed projects. Please see the following:
JRACLOUD-83171 - Getting issue details... STATUS