Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attachments created by PostAttachment method cannot be viewed by customers #616

Open
jfgsilva opened this issue Feb 20, 2023 · 1 comment

Comments

@jfgsilva
Copy link

What would you like to be added?

  • IssueService method PostAttachment creates attachment which cannot be viewed by customers. It would be nice to be able to set visibility for customer also (maybe even as default). (This exists for comments based on role. Default is public for customer).
  • Attachment Type has no visibility field
type Attachment struct {
	Self      string `json:"self,omitempty" structs:"self,omitempty"`
	ID        string `json:"id,omitempty" structs:"id,omitempty"`
	Filename  string `json:"filename,omitempty" structs:"filename,omitempty"`
	Author    *User  `json:"author,omitempty" structs:"author,omitempty"`
	Created   string `json:"created,omitempty" structs:"created,omitempty"`
	Size      int    `json:"size,omitempty" structs:"size,omitempty"`
	MimeType  string `json:"mimeType,omitempty" structs:"mimeType,omitempty"`
	Content   string `json:"content,omitempty" structs:"content,omitempty"`
	Thumbnail string `json:"thumbnail,omitempty" structs:"thumbnail,omitempty"`
}

Why is this needed?

Most tickets are created through the Jira Portal. It stands to reason, that any work processed for a ticket that produces an attachment result should be visible to the reporter.

Anything else we need to know?

N/A

@vladimir-ch
Copy link
Contributor

This sounds like an issue with your Jira configuration or a limitation of your Jira product. Jira REST API doesn't provide means to get/set attachment visibility.

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

No branches or pull requests

2 participants