@Tyler Brown-Jones Hi, i have two projects. Software and service desk. And i create a listener which copy attachment from software to service desk. But it copy as internal(not external) hov i can set it as external(vissible on customer channel)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you check that your customers have permissions to view and add attachments?
Project administration -> Permissions -> Make sure you add "Service Desk Customer - Portal Access" to Create Attachments.
Please let me know if this doesn't resolve your issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The only fix for this would be the agent adding a comment in to the service desk ticket and attaching the attachment you have added via the script listener to this comment. Perhaps catch when an attachment is added to an issue using a script listener and add that attachment within a comment?
Just fruits for your thoughts.
Feel free to ask any questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i add attachment i Software project, then i copy it to the SD, and it is not wisible on customer portal.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.comments.CommentManager
import com.atlassian.jira.issue.link.IssueLink
import com.atlassian.jira.util.AttachmentUtils
import com.atlassian.jira.issue.attachment.Attachment
import com.atlassian.jira.issue.attachment.CreateAttachmentParamsBean
CommentManager commentManager = ComponentAccessor.getCommentManager()
def CurrentUser = ComponentAccessor.getUserUtil().getUserObject('user')
def issueService = ComponentAccessor.getIssueService()
def componentManager = com.atlassian.jira.component.ComponentAccessor
def attachmentManager = componentManager.getAttachmentManager()
def issueManager = componentManager.getIssueManager();
def issue = issueManager.getIssueObject("SD-1067")
def linkMgr = ComponentAccessor.getIssueLinkManager()
def sourceAtt = attachmentManager.getAttachments(issue).last()
File attachmentFile = AttachmentUtils.getAttachmentFile(sourceAtt);
def user = ComponentAccessor.getJiraAuthenticationContext()?.getUser()
attachmentManager.copyAttachment(sourceAtt, sourceAtt.getAuthorObject() , issue.key)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.