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

Trying to create issue via API and keep getting authentication issues

Frank Meoni February 22, 2024

I am trying to create an issue in a project and keep getting the 

"You do not have permission to create issues in this project."  error.  I can create an issue in this project through the UI so I think I'm ok permission-wise.  However I have seen several different explanations of the authentication (using POSTMAN) and none of them work.  This is what I have tried so far:
  • Basic Auth with email and password
  • Basic Auth with email and Token (created in my Jira profile)
  • Inherited with email and token in this form, myemail@company.com:111222333... (the token) then base64encode the whole thing and use the Authorization:{that thing encoded} in the header.
  • Bearer Token using the token
According to what I've read one or more have worked for others and none work for me.
I am sure its something small and stupid but I would appreciate another set of eyes on this for me.  Thanks.
Unless, there is something in the Admin section of my permissions that doesn't allow API access like UI access but then why would it allow me to create a token?  

1 answer

0 votes
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 22, 2024

Hello @Frank Meoni 

Welcome to the community. Can you tell if you are on Cloud or Data center edition?

If Cloud -> Get your API token, then Base64 encode your credentials, and use Authorization: Basic <encoded-token> for authentication

if in DC -> Get your PAT token, and use Authorization: Bearer <PATtoken> for authentication

Hope it helps.

Frank Meoni February 22, 2024

When you say Base64 encode my credentials do you mean encode this:

myemail@company.com:<token>?

 

I have done the following:

using basic auth: username is my email

Password is the following base64 encoded: myemail@company.com:<token>

Frank Meoni February 22, 2024

BTW I should have done this first.

@Kalyan Sattaluri thank you for responding!

Like Kalyan Sattaluri likes this

Suggest an answer

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

Atlassian Community Events