Skip to content

[Feature]: It seems that we can't add the correct comment with the security level necessary #725

@ealcaniz

Description

@ealcaniz

Is your feature request related to a problem? Please describe.

Requesting to update this MCP to add a comments with the correct level of security if necessary.

Describe the solution you'd like

Adding some code for comments.py

def jira_add_comment(
issue_key: str,
comment: str,
visibility_type: Optional[str] = None, # "group" or "role"
visibility_value: Optional[str] = None # e.g., "Company Employee"
):
# Build the comment payload
payload = {"body": comment}

  # Add visibility if specified
  if visibility_type and visibility_value:
      payload["visibility"] = {
          "type": visibility_type,
          "value": visibility_value
      }

  # Make API call with payload
  response = jira_client.add_comment(issue_key, payload)
  return response

Describe alternatives you've considered

No response

Use Case

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions