Forums

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

question on syntax of file parameter of Add attachment API on Jira Cloud

Jay Keck
Contributor
June 24, 2019

I'm able to add an attachment to jira cloud from my Windows folder, which is great. But in terms of where the file can be located, it seems that I always have to use syntax of @filename, with no ability to specify a path name, so it seems to come from my current folder, not ideal. I've tried @c:/path/filename, @c:\path\filename, @/c:/path/filename, and all of these surrounded by {} and "", but no luck I get a https 405 error on all of these.

Is there a way to specify a Windows path in the add attachment API? Also what does the @ represent, 'current folder' or something else

Thanks,

Jay

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2019

Hi @Jay Keck ,

Just a wild guess that I cannot try since I don't have windows, but, have you tried escaping the backslash?

e.g. @c:\\path\\filename

 

Can you try and let me know if this works?

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events