Forum Discussion
Philip_Baird
11 years agoCommunity Expert
Hi, the Script Extension Alexei refers to uses the (now marked for deprecation) Jira SOAP/RPC Web Service API.
The other caveat to it is that it also uses functions such as WebServices::CreateWebServiceInfo() which requires the Web Service Testing Plug-Ins be installed, as detailed here.
The new Jira REST Web Service API offer the resource /rest/api/2/issue/{issueIdOrKey}/attachments as documented here.
The only issue around it is the following:
"This resource expects a multipart post. The media-type multipart/form-data is defined in RFC 1867. Most client libraries have classes that make dealing with multipart posts simple. For instance, in Java the Apache HTTP Components library provides a MultiPartEntity that makes it simple to submit a multipart POST."
and the example provided isn't that useful.
It should be possible to write a small .Net or Java library that can be accessed via the CLR or Java Bridge that can POST to this resource.
Having never tried it, I am not sure if the multipart POST can be done using the XMLHttpRequest object provided by the Test Complete Scripting interface.
Regards,
Phil Baird
The other caveat to it is that it also uses functions such as WebServices::CreateWebServiceInfo() which requires the Web Service Testing Plug-Ins be installed, as detailed here.
The new Jira REST Web Service API offer the resource /rest/api/2/issue/{issueIdOrKey}/attachments as documented here.
The only issue around it is the following:
"This resource expects a multipart post. The media-type multipart/form-data is defined in RFC 1867. Most client libraries have classes that make dealing with multipart posts simple. For instance, in Java the Apache HTTP Components library provides a MultiPartEntity that makes it simple to submit a multipart POST."
and the example provided isn't that useful.
It should be possible to write a small .Net or Java library that can be accessed via the CLR or Java Bridge that can POST to this resource.
Having never tried it, I am not sure if the multipart POST can be done using the XMLHttpRequest object provided by the Test Complete Scripting interface.
Regards,
Phil Baird
Related Content
- 3 years ago
- 6 years ago