Skip to content

Conversation

@kahowell
Copy link

Description

Allow restricting comment visibility when adding comments to Jira issues. The visibility parameter accepts a dictionary specifying access restrictions (e.g., {"type":"group","value":"jira-users"}).

Changes

  • Added visibility parameter to add_comment method in src/mcp_atlassian/jira/comments.py
  • Enhanced server endpoint in src/mcp_atlassian/servers/jira.py to accept optional visibility parameter
  • Updated tests

Testing

  • Unit tests added/updated
  • Integration tests passed
  • Manual checks performed: Tested a comment add via claude code both with and without requests to restrict visibility.

Note I did not run the integration tests locally.

Checklist

  • Code follows project style guidelines (linting passes).
  • Tests added/updated for changes.
  • All tests pass locally.
  • Documentation updated (N/A).

Allow restricting comment visibility when adding comments to Jira issues. The visibility parameter accepts a dictionary specifying access restrictions (e.g., {"type":"group","value":"jira-users"}).
Replace generic dict with specific dict[str, str] type annotation
Update test assertions to match the new method signature that includes the visibility parameter. All existing tests now pass None for visibility, and add a new test case for restricted visibility comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant