Attachments added in jira ticket through rest api is not visible on portal

Vartika Shukla July 4, 2017

I have used "domain/rest/api/2/issue/issueKey/attachments" rest api to attach file to ticket.  But it is not visible on portal.

When I create ticket with an attachment from portal it is visible.

I compared the response of  both the tickets using "domain/rest/api/2/issue/issuekey" rest api. Both are similar.

I don't understand what's going wrong.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2017

I think you've added the attachment to the issue, rather than the request.  

  Therequest is what the customer creates and sees in the portal, the issue is the underlying data behind it, available only to agents.

Vartika Shukla July 4, 2017

Yeah, I was adding attachment to the issue instead of the request. Thanks for help.

Like Ivan K_ likes this
Nihad Azimli January 22, 2019

Do you know how to add to attachment to request through API?

Nihad Azimli January 22, 2019

Can please help me adding attachment to request via API?

Ivan K_ April 27, 2023

Hi! Can you please tell me how to add an attachment to a user request and not to a issue? I didn't find such a method in the Jira documentation. I need the attachment added to the task via api to be displayed on the user portal in the "Activity" section. Attachments sent via the "[JiraURL]/[IssueID]/attachments" POST-method are not displayed in the user portal.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events