HI Team,
Used the below API to get Testcase details, in the testcase description we have an image.
API: https://xxxxx.atlassian.net/rest/api/3/issue/ECO-13
Please share the Jira api to download the image with input media id.?
In Jira viewsource the image is like below.
“img data-testid=“media-image” draggable=“false” alt=”" src=“blob:https://noustestjira.atlassian.net/8c3489fc-b25e-4c9f-a172-2184f1527560#media-blob-url=true&id=f371de4b-6ff5-428d-a762-e0ab27f54232&collection=&contextId=10132&height=200&width=300&alt=” style=“position: absolute; left: 50%; top: 50%; object-fit: contain; image-orientation: none; transform: translate(-50%, -50%); height: 100%;”
Image JSON:
{
“type”: “mediaSingle”,
“content”: [
{
“type”: “media”,
“attrs”: {
“type”: “file”,
“id”: “f371de4b-6ff5-428d-a762-e0ab27f54232”,
“collection”: “”,
“width”: 300,
“height”: 200
}
}
],
“attrs”: {
“layout”: “align-start”
}
},