Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Vartika Shukla
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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.

Ahmed El Ouahidi _externe_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 16, 2024

Hi,

You have to do the following:

1- Add the attachment

2 - Insert a placeholder in the description/body where to display the attachment: [^FILE_NAME]

PS: Change FILE_NAME with your attached file name.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events