Forums

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

webHook attachment empty array

Alejandro Ferrari
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!
October 26, 2018

Hi, I've already search about this in the community and other sites but nothing...

When I create a ticket from my CMS with one (or more) attachments, it is correctly created on the Jira Board, even I can see the attachments, now, when in my app that sends the webhook I want to get those files, it returns a empty array (the others fields it is ok).

  • I've already check the system config and I have ON the attachment option ( Config > System > attachments)

  • I don't know why, but I get another event called attachment_created with the files, but this hasn't the ID for the previous event (issue_created), I guess this is an alternative, innecesary when I have the array in the "issue_created" event.

How I get the values (all ok, except attachment):

 

REQUEST:

var issue = {
   id: req.body.issue.id,
   key: req.body.issue.key,
   priority_name: req.body.issue.fields.priority.name,
   priority_id: req.body.issue.fields.priority.id,
   status: req.body.issue.fields.status.name,
   summary: req.body.issue.fields.summary,
   description: req.body.issue.fields.description,
   client: client,
   type: req.body.issue.fields.issuetype.name,
   attachment: req.body.issue.fields.attachment
}

 

RESPONSE:

 

{

id: '21098',
key: 'MC-3796',
priority_name: 'Medium',
priority_id: '3',
status: 'Por hacer',
summary: 'test imagenes',
description: 'test attachment',
cliente: '10000',
type: 'Bug',
attachment: [],
fecha_c: 2018-10-26T12:50:30.810Z,
mail_destino: null,
reporter: 'Ale'

}

 

If somebody knows what it's happens... thanks

 

Note: sorry for my english :P 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events