Neuron ESB User Network

The Service Bus for the Connected Business

Hi,
I need to submit a REST request to JIRA, creating an attachment.
This is an example of a successfull call, attaching a txt file, submitted thorugh Postman

POST http://jiratest.kamstrup.dk/rest/api/2/issue/oms-2149/attachments HTTP/1.1
X-Atlassian-Token: no-check
Content-Type: multipart/form-data; boundary=--------------------------236638228057324148168041
cache-control: no-cache
Postman-Token: 57474a56-9350-47db-b840-b6811b74139c
Authorization: Basic bmV1cm9uLXRlc3Q6S2Ftc3RydXAyMDE5
User-Agent: PostmanRuntime/7.6.0
Accept: */*
Host: jiratest.kamstrup.dk
cookie: JSESSIONID=D13E363BCE1C13A72F03228E87C7CE3E; atlassian.xsrf.token=BFA9-9KJP-X2G3-LK1H_d22a0d2bf4dba9a4546f546b9fcb2acd790e7dd8_lin
accept-encoding: gzip, deflate
content-length: 210
Connection: keep-alive

----------------------------236638228057324148168041
Content-Disposition: form-data; name="file"; filename="test.txt"
Content-Type: text/plain

test
----------------------------236638228057324148168041--


I've tried reproducing the same through the Http Client utility (using Form Body as Body option), but it doesn't seem to support additional body headers (Content-Type), as well as additional form parameters (filename="")

POST http://jiratest.kamstrup.dk/rest/api/2/issue/oms-2149/attachments HTTP/1.1
X-Atlassian-Token: no-check
Content-Type: multipart/form-data; boundary=----------bec4bc1b5e48429bafd3aa48a31fc7c4
Authorization: Basic bmV1cm9uLXRlc3Q6S2Ftc3RydXAyMDE5
Host: jiratest.kamstrup.dk
Content-Length: 277
Expect: 100-continue
Accept-Encoding: gzip, deflate

------------bec4bc1b5e48429bafd3aa48a31fc7c4
Content-Disposition: form-data; name="file"

This is a test.

------------bec4bc1b5e48429bafd3aa48a31fc7c4--



What do the key/value pair represent in the client utility? How should it be configured?
Alternatively, can I create a REST request manually, any suggestion for this?

Thanks

Fabrizio

Views: 231

Reply to This

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service