Forums

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

PAT token for REST Api doesn't work

Smartcat
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!
July 27, 2022

Hello!

We want to create integration through Jira REST Api for two versions of Jira:

  • Jira Software Cloud, version: 1001.0.0-SNAPSHOT
  • Jira Software Server, version 8.20.9

We tried to use Personal Access Token (Bearer or Jwt auth) for requests REST Api, but it didn't work:

  • for Jira Cloud version we didnt get any data, just empty arrays
  • for Jira Server version we didnt get data or got 401 Unauthorized error


We need to request these endpoints:

  • rest/api/2/serverInfo
  • rest/api/2/project
  • rest/api/2/project/:id
  • rest/api/2/issuetype
  • rest/api/2/issue/createmeta
  • rest/api/2/issue/:id
  • rest/api/2/search
  • rest/api/2/issue/:id/attachments
  • rest/api/2/attachment/:id
  • secure/attachment/:id/:name

How can we solve this?

For Jira Cloud we used api token at first. But it doesn't fit in our case, because our client uses Jira Server without this feature and now it's not possible to install api token extension for their Jira from marketplace

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events