Forums

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

How to Rest Post to Jira Attachment field?

Mina A February 21, 2019

SnapLogic Jira Create Snap provides the functionality to execute an HTTP Post method to a JIRA REST API service endpoint to create JIRA issues. 

Here is how the Jira schema looks

 

Jira_Attachment-Source.JPG

 

Could you tell us what value that Attachment field takes as so far we have been getting errors such as 

"{"errorMessages":[],"errors":{"attachment":"Field does not support update 'attachment'"}}"

Jira_Attachment.JPG

 

 

3 answers

1 accepted

0 votes
Answer accepted
Thomas Deiler
Community Champion
February 21, 2019

Dear @Mina A ,

I don't know your piece of software but I know the REST API. You have to 

  • set the custom header "X-Atlassian-Token" "nocheck"
  • you have to wrap the attachment as a multi part entity
  • The name of the binary body has to be "file"

So long

Thomas

Mina A February 21, 2019

Thank you so much Thomas! Is it possible to share an example using google postman?
A few screenshots would be great.

Mina

Thomas Deiler
Community Champion
March 16, 2019

Dear @Mina A ,

have a look at this post.

So long

Thomas

Like Mina A likes this
0 votes
Mina A March 18, 2019

@Thomas Deiler Thank you. We are all set. That's very helpful!

0 votes
Mina A March 7, 2019

@Thomas Deiler Thank you Thomas. We tested but are getting  method not allowed. If you could show us a couple screenshots from google postman, that'll help us a lot.

Suggest an answer

Log in or Sign up to answer