Forums

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

How to set a file type field with attachment in other page

AJ February 21, 2023

I have a form with field (let's say uploadFile) of type "File/Attachments". A file is available as an attachment (let's say "test.xlsx") in some other Confluence Page.

I wish to set "uploadFile" field with value as "test.xlsx" file and then pass the "uploadFile" to JIRA during ticket creation. How to do this? I tried exploring lot of pages, but none works.

I do not want to reattach the "test.xlsx" file again and again in current page whenever JIRA is created but directly take from the pre-defined Confluence page.

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
February 22, 2023

Hi @AJ and welcome to this community

Is this a question about ConfiForms app and it's ability to create Jira issues and attach files? It sounds like it is, but just to be sure...

Alex

AJ February 22, 2023

Yes this is for confiform app. If I use direct field to select and upload file, it is getting attached to JIRA. But I want to make the field set automatically with an attachment which is present on some other page so that the file is attached to JIRA automatically rather than user manually selecting the file. I just have the normal link to the file like this:

https://confluencelinkhere/download/attachments/2665233635/test.xlsx?api=v2

Alex Medved _ConfiForms_
Community Champion
February 22, 2023

Will add the tags then to mark it as ConfiForms related...

To answer your question - short answer is "Yes, it's possible"

There is an attachment picker field that you can preset to some specific value (attachment id - you can find it from the attachment view) and this acts the same way as the "File/Attachments" field when sent to Jira

Just drop the ConfiForms Field pointing at this attachment picker into ConfiForms IFTTT macro that creates a Jira issue for you

Alex

AJ February 22, 2023

I have defined a field called "uploadFile"  of type "Attachments Picker". Now do I define IFFFT rule or Rules for Field Definition? Could you please help to share the step-by-step process how to set the uploadFile value using the following URL of attachment:

https://myconfluenceserver/download/attachments/2665233635/test.xlsx?api=v2

Alex Medved _ConfiForms_
Community Champion
February 22, 2023

Here is a quick demo of what I was trying to tell

http://recordit.co/MPfe1vpX09

Of course, you can hide the picker field with "Hide Field" rule, so your users does not even know there is one

Alex

Like AJ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events