Forums

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

Not able to download attachments programmatically

Rajendra Dixit
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!
December 7, 2021

It used to work but after recent upgrade to Jira 8.20.1 now I cannot download JIRA attachment programmatically. Previously when my dot net program used to execute the  url  (https://issues.ngptools.com/jira/secure/attachment/1197574/ADV-48936-09576.csv?&os_username=xxxxxxx&os_password=xxxxxxxxxx) it used to download the file but now it is not working and giving error,  I am receiving a "permissionViolation=true"

 

Is there any different way to download attachment now?

1 answer

1 accepted

5 votes
Answer accepted
Charlie Misonne
Community Champion
December 7, 2021

Hi @Rajendra Dixit 

That will not work anymore indeed. See JRASERVER-38548

Try using basic authentication. This means you will have to provide the credentials encoded with base64 in a request header.

And as you're using this in some custom program it would be even better to use a personal access token in you basic auth header.

Rajendra Dixit
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!
December 7, 2021

@Charlie Misonne  thank you, I was able to get the attachment using personal access token.

Charlie Misonne
Community Champion
December 8, 2021

OK! Glad I could help :-)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events