Forums

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

How to Attach the Attachment using Attachment/File data using JIRA REST API

Deleted user February 13, 2020

Hi,

 

I am doing integration between Salesforce and JIRA. I am getting the Attachments data from the Salesforce ( file name, file type, content). I am not sure how to attach the attachment using the attachments data using REST API. 

Thanks. 

1 answer

0 votes
Thomas Deiler
Community Champion
February 13, 2020

Dear @[deleted] ,

first have a look at the API-DOC. Important to know:

  • you need an issue before you can attach
  • you need to set the header X-Atlassian-Token: no-check
  • name of the multi part mime type content must be "file".

I recommend to probe with curl first, before integrating in salesforce.

So long

Thomas

Deleted user February 13, 2020

Hi @Thomas Deiler :

Thanks for your quick reply.

JIRA API Documentation doesn't have any Example of how to add the Attachment using the Attachments data. I did set up the reaming required setup in my HTTP Calls. I don't know what are the required fields or Field Id's to pass the data.

Thanks.  

Thomas Deiler
Community Champion
February 13, 2020

In which programming language do you call the REST API?

Deleted user February 13, 2020

Hi @Thomas Deiler :

I use Boomi Tool. for this integration, I am using JSON in Boomi tool.

Thanks. 

Bee Vang
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!
May 17, 2022

I too am having this integration question. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events