Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Can not use rest template to call Jira API

Hi guys,

I'm trying to call jira api by rest template in my Java application, but its not working. The response code is 401: Basic authentication with passwords is deprecated.

idk But its work on postman. I tried both 2 cases:

-Using basic authen with username and password
-Add header



Any suggestion about this ?

1 answer

Hi @Nguyễn Dương Li welcome on the community :).

You need to use access token as part of the basic auth. You can create it using this how-to article:

Let me know if it's working or not :)

@Martin Bayer _MoroSystems_ s_r_o__  

sorry my mistake, I already use api_token, it works on postman but 401 when I call from my Java app.

Screen Shot 2021-01-25 at 09.08.46.png

Ok @Nguyễn Dương Li can you share your java app code?

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Trello

📹 Favorite Trello templates

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...

99 views 5 7
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