Skip to main content
Answer

Failed to create an attachment in Jira Software Cloud: The app returned "Your key is too long."

  • August 10, 2023
  • 19 replies
  • 191 views

cferg54
Forum|alt.badge.img+1

everything has been working and attachments were made. Now I am getting a unknown error and can not figure out the issue. 

Failed to create an attachment in Jira Software Cloud

The app returned "Your key is too long".

Does anybody know what could be the issue? The project key is the same amount of characters as before unsure why it all the sudden does not work. 

Best answer by cferg54

I was able to pass through a form with a single attachment but not with multiple attachments so maybe something to do with how many different attachments are added to the form. 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

19 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

Hi @cferg54 

Good question.

To give us more context, please post screenshots with how your Zap steps are configured along with the encountered error.

 

The app returned "Your key is too long".


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

 


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

@cferg54 

The Issue field expects the internal Issue ID, not a Project Key.

 

 


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

At the bottom of the issue it says issue key instead of the ID. Is this not correct? I can say the 5 forms before this worked and attachment was transferred but this last one it did not. 


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

I tested with the ID instead of the key and still had the same error. Could the names of the attachments be to long which could cause this issue or not really?


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

@cferg54 

Check the dropdown list of values.

For each option the top is the friendly label, and the bottom is the internal ID.

The internal ID is expected.

If you are trying to use an internal ID that does not exist, then you will encounter an error.


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

The internal ID does exist and still has the same error, verified again.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

@cferg54 

Can you post a screenshot of some options from the dropdown list?


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

@cferg54 
We need to see options from the ‘Issue’ tab.

 


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • Answer
  • August 10, 2023

I was able to pass through a form with a single attachment but not with multiple attachments so maybe something to do with how many different attachments are added to the form. 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

@cferg54 

You can use the Looping app to handle 1+ attachments.

https://zapier.com/apps/looping/help


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

@Troy Tessalone  How does it tie into this section will it run in the background and automatically pull all the attachments or is there something we do in the back end? What would be your choice for something like this?

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

@cferg54 

I’m not clear on your last questions.

Can you provide examples?

 

More about Looping: https://help.zapier.com/hc/en-us/articles/8496106701453-Loop-your-Zap-actions


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

@Troy Tessalone Sorry about that.

I am wanting to transfer attachments from a form to a support ticket in Jira via zap, but it will only make this transfer if there is only 1 attachment in the form. If it has more than 1 attachment in the form it does not transfer any attachments at all. So I am just trying to figure out what to implement and how to tie it into this jira section of the zap to make this work.

My main questions are,

What is best plug in to use with looping? How would we connect the Jira setup in the zap to work with looping?


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

@cferg54 

You would add the Looping app step before the Jira Add Attachment to Issue.

 

We would need to see screenshots with the outline of your Zap steps.


cferg54
Forum|alt.badge.img+1
  • Author
  • New
  • August 10, 2023

@Troy Tessalone 

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 10, 2023

@cferg54 

Add a Looping step between Step 2 and Step 3, so it becomes the new Step 3.

Map the attachment field from step 1 to step 3. (Looping)

Map the field output from the Looping step to Step 4 (Jira).