Attachment is not showing in the xray-jira even after getting 200 http status code

Rachi Manwal May 29, 2023

Hi, I am trying to upload a file to my test case by using below api. I am getting 200 success status in postman but can't find any file attached to the test case in jira. Can anybody please help.

{{JIRA_BASEURL}}/rest/raven/1.0/api/testrun/{{testRunID}}/attachment

 

Capture1.PNG

Capture1.PNG

1 answer

1 vote
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 29, 2023

Hi @Rachi Manwal 

The attachments you are showing on the 2nd image, is from Jira. You shouldn't see there the attachment since the endpoint is not on Jira, but rather than on Xray https://xray.cloud.getxray.app/api/v2/attachments

Rachi Manwal May 29, 2023

then, how can I attach any file to my test case through API?

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 29, 2023

This is the way to attach a file to a step, but the attachment will be visible on that step:

attachment xray.png

Rachi Manwal May 29, 2023

No, I want to attach a screenshot to my test case not to the step.. and want that screenshot should be visible in the jira... Capture1.PNG

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 29, 2023
Rachi Manwal June 1, 2023

okay, thank you!!

Shilpa Malhotra
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!
September 23, 2024

Hi @Alex Koxaras _Relational_ I used this url for attachment - https://xray.cloud.getxray.app/api/v2/attachments but where can I find the attached file in jira? There was no reference of the JIRA ticket when I made the request. Is there any default location? Is there any way to remove the attachment?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events