Forums

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

How do I deleted a file attached as a field in a Confiform?

Sandra Mehlmann
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!
September 13, 2018

I have defined a Confiform form that has one field defined as File - upload filed/images. I want the attachment associated with an entry to be deleted when the entry is deleted so I added an IFTTT Integration Rules macro with an onDeleted event and Delete Attachment action. I have not succeeded in getting the attachment to delete when the entry is deleted. I have tried a number of ways to specify the attachment ID including:

  • id:[entry.myattachment..id]
  • id:[entry.myattachment..id]
  • id:[entry.myattachment.asAttachment.transform(id)]
  • id:[entry.myattachment.asAttachment.id]
  • id:[entry.myattachment.asAttachments.transform(id)]
  • id:[entry.myattachment.asAttachments.transform(id).asList]

I am using Confluence 6.8. Any suggestions?

 

 

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
October 8, 2018

In the attachments to delete parameter you need to put 

[entry.myattachment.asAttachments.transform(id).asList]

So, it will render out the list of attachment IDs stored with "myattachment" field 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events