I have a script that is supposed to add a comment after updating the groups of a user:
Example, Calling the function:
jira_comment(jira, jira_issue, "This user has been added to jira groups: {0} by slack user: {1}".format(jira_groups, slack_username), True)Function:
if internal_flag:
resp = jira_object.add_comment(
issue=issue,
body=comment,
visibility=None,
is_internal=True
)
else:
resp = jira_object.add_comment(
issue=issue,
body=comment,
visibility=None,
is_internal=False
)
I expected the comment to be "Restricted to Service Desk Team" but it fails to do so and the comment is visible for any user. Any help?