Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to send a fail and attach it to a BUG in Jira using JIRA REST API

Suryaabhilash.Pabolu
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 30, 2022

I am looking for code to send a file as an attachment to a JIRA Issue in JIRA using REST API Can some one please help on that ?? 

1 answer

0 votes
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.
June 30, 2022
Suryaabhilash.Pabolu
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 2, 2022

Hi @Nic Brough -Adaptavist- I have seen this page. And i have already used through postman by selecting file and it worked. But I am not sure what is the process that is being used behind the postman to send the file.. 

I am basically looking for VBScript code or similar code through POST method by creating object of class Set WinHTTP = CreateObject("WinHttp.WinHTTPRequest.5.1") and then use the methods to send the file using POST or PUT method using the url https://***.atlassian.net/rest/api/2/issue/BMCC-*****/attachments. Could you please help related to this ??? 

Thanks in Advance !!

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 2, 2022

Postman does what it says - it sends the request you enter into it to the web site you tell it to contact.

Your VBScript does the same.   It's ends a message to a web site.  I can't tell you how your code might do that, it's up to your code to do it,.

Like Suryaabhilash.Pabolu likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events