Uploading Attachments in JIRA Dashboard from Confluence Page
Asked by ORGANIC GENIUS SELVARAGHAVAN Vignesh:

Hello Team/Alex Medved_Confiforms

This is post is to the team and especially to ALEX

I'm trying to upload an attachment to a JIRA DASHBOARD. I'm creating it from my Confluence Page (confiform), but the attachment isn't uploading in jira Dashboard. I could only see my Attachment name instead of Attachment. Please help me in resolving the same.

Please find the screenshots for your reference!

![Attachment Page.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/144731i92A9909985134C23/image-size/large?v=v2&px=999 "Attachment Page.JPG")![Page1.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/144733iC8C1C795EFA04E60/image-size/large?v=v2&px=999 "Page1.JPG")![Page2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/144732iEB7421F3D1998CE3/image-size/large?v=v2&px=999 "Page2.JPG")![Page3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/144734iBA8A759B3039572A/image-size/large?v=v2&px=999 "Page3.JPG")


Answers:
author: Alex Medved _ConfiForms_
body: Hi

When you use "web service" request type IFTTT in ConfiForms to create Jira issues you need to **set up an additional IFTTT to upload attachments**, as to upload attachment to the issue you need to use another REST API endpoint from Jira

On this page we demonstrate how you can do that <https://wiki.vertuna.com/display/TEST/Create+Jira+issue+with+webservice+connection+with+files+and+remote+links>

And this IFTTT in particular is what is missing

```
<ac:structured-macro ac:macro-id="cd50e22c-2262-4c23-9a31-a24dbf92a90d" ac:name="confiform-ifttt" ac:schema-version="1">
<ac:parameter ac:name="action">WebService Request</ac:parameter>
<ac:parameter ac:name="extras">4bb4c41a51f289a07507d50a1b841a4d</ac:parameter>
<ac:parameter ac:name="event">onCreated</ac:parameter>
<ac:parameter ac:name="title">/rest/api/latest/issue/[entry.jk.asJSON.key]/attachments</ac:parameter>
<ac:parameter ac:name="additionalContext">file</ac:parameter>
<ac:parameter ac:name="extras2">X-Atlassian-Token: no-check;</ac:parameter>
<ac:parameter ac:name="who">POST</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="1271c70c-7c2b-4ed2-b009-d2e731ec4a8b" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">Attachments</ac:parameter>
</ac:structured-macro>
</p>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
```

Alex

comments: author: ORGANIC GENIUS SELVARAGHAVAN Vignesh
body: **Hello Alex,**

**First of all Thank you so much for the response!**

Based on you comments I had already Configured the additional IFTTT to upload attachments. Please find the same for your reference. But still I am facing the same issue. Attachments are not loaded into JIRA.

Please let me know your comments. Also, Is there anyway I can connect with you real quick so that we can resolve this issue quickly. Please let me know if any such opportunity for the same!

Many Thanks!

![Page 3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/145013i4E1B4A6C8E0C9BDB/image-size/large?v=v2&px=999 "Page 3.JPG")


author: Alex Medved _ConfiForms_
body: Your condition for the IFTTT looks suspicious...

If you want to check the Attachments (field value) to be present then yo need to have something like

```
!Attachments:[empty]
```

See more on ConfiForms filters here - <https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Filters>

Alex


author: ORGANIC GENIUS SELVARAGHAVAN Vignesh
body: Hello Alex,

Updated the code like !Attachments:\[empty\]. But still it is not working!

I am getting the same result in Jira Dashboard. (Getting only the name of the Attachment and not as an attachment) Please find the below for your reference! Thank you so much!

![Result in JIRA.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/145072i9DE7347BEAD32331/image-size/large?v=v2&px=999 "Result in JIRA.JPG")


author: Alex Medved _ConfiForms_
body: Hard to tell without seeing complete configuration.

Could you share the storage format for the page with the form or at least the configuration of the IFTTTs that create Jira issue, save back the issue key and the IFTTT that attempts to upload the file (Attachments) to created Jira issue

Feel free to open support request if yo are not comfortable with sharing your configuration here, on public forum - <https://wiki.vertuna.com/display/VERTUNA/Support+Request+Form>

Alex


Tags: cloud

confiforms

new-to-confluence