Just another file attachment does not work query

Ronny August 22, 2024

Hi all,

I have read a number of posts similar to my query about "file attachment" but mine still does not work.

 

Basically I want to use confiform to create a jira ticket (this one work), and allow users to attach file in the ticket.

To make it a bit "challenging", a label will added in the ticket as per below :

IF there is an attachment 

then produce label "Content"

 

IF there is no attachment

then add label "ContentNA"

-------------

I have added some screenshot to help understand my issue

 

Thank you

 

jira-4.JPGjira-3.JPGjira-2.JPGjira-1.JPG

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2024

Hi @Ronny 

Just have your ConfiForms IFTTT to create a JIra issue to have this configuration

Screenshot 2024-08-22 at 15.40.52.png

Alex

Ronny August 22, 2024

Hi Alex,

thanks for the reply.

 

Do you mean I need to remove the line from the "set" to "end"?

set($attachment1 = "[entry.fuDesc]")
  if($attachment1.isEmpty())
   "labels": ["NewRequest", "ContentNA"],
  else
   "labels": ["NewRequest", "Content"],
  end

 

If so, after I removed it and tried to send a form with attachment it comes up with the below error

Requested to https://<my jira URL>com/rest/api/2/issue//attachments has resulted in an error. Response code = 404 (method ='POST'). Response contents: 404null for uri: https://<my jira URL>.com/rest/api/2/issue//attachments

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2024

Sorry to say, but you are overcomplicating things

You don’t need an extra IFTTT… All you needed to do is to add the ConfiForms Field to the one that you already have for creating an issue itself
(And removing that IFTTT that you have for specifically put for the attachments)

Ronny August 25, 2024

Thanks @Alex Medved _ConfiForms_ 

and nothing to apologise for.


I think I understood what you referring to.,

I have removed the extra IFTTT (attachment IFTTT) and added the "confi field" to the default "ticket creation IFTTT" as per below.

It worked!

ps: this was created by someone else, and I thought I tried my luck to fix it and thanks to you I made the form usable again :)

 

 

 

jira-5.JPG

THank you 

 

 

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events