Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Not able to download attachments programmatically

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

4 votes
Answer accepted
Charlie Misonne Community Leader Dec 07, 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.

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

Charlie Misonne Community Leader Dec 08, 2021

OK! Glad I could help :-)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Next level incident management in Jira Service Management

Hello Atlassian Community! We’re thrilled to announce some exciting changes to incident management in Jira Service Management Cloud, in order to give your teams extra muscle during incidents, and ...

1,674 views 21 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you