The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Unable to create a JIRA issue, I can create a JIRA issue using the website or Outlook plugin.

Juan R Andrew
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!
May 2, 2024

Here is my JIRA API curl configuration 

JIRA_USERNAME=
JIRA_API_TOKEN=""
JIRA_BASE_URL

curl -u "$JIRA_USERNAME:$JIRA_API_TOKEN" \
-X POST \
-H 'Content-Type: application/json' \
$JIRA_BASE_URL/rest/api/3/issue/ \
-d '{
"fields":{
"project":{ "key":"SR" },
"issuetype":{ "id":"10935" },
"summary":"Issue Created by Bash JIRA API Call",
"description":"Issue Created by Bash JIRA API Call"
}
}'

 

{"errorMessages":["You do not have permission to create issues in this project."],"errors":{}}[root@rmslab2 working

 

 

 

 

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
JJ
April 11, 2025

This is not an answer but reiterating what others have reported already.  And yes, I have checked multiple times what I am doing and this does not square up.

I am having exactly the same problem as described above.  I have create a Personal Access Token for the very account I am able to create issue types in JIRA through the browser.

This simple command should work:

curl -v -D- -H "Authorization: <pat removed for obvious reasons>" \

     -H "Content-Type: application/json" \

     --request POST \

     --data '{"fields": {"project": { "key": "CIP"},"summary": "curl","description": "curl script","issuetype" : {"name": "Task"}}}'  https://<company_name>.atlassian.net/rest/api/3/issue

But it does not with the error:

{"errorMessages":["You do not have permission to create issues in this project."],"errors":{}}

Some AI LLM tool suggested this:

Verify PAT Permissions:

Go to your Atlassian account settings

Navigate to Security > Personal access tokens

Check that your token has the necessary permissions (read:jira-work, write:jira-work)

Consider creating a new token with explicit permissions for issue creation

But I do not see those options on my JIRA installation.  I can only create tokens with an expiry date.  Nothing else.

This is the JIRA I am using:

Build Number: 100283
Build Date: 2025-04-10T17:15:24.000+0200
Deployment Type: Cloud

If you still think we are doing something wrong, can you suggest some different way of debugging this that is different than what I have tried already?

Thank you!

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
May 5, 2024

@Juan R Andrew 

Welcome to the Community!

It definitely seems like a permission problem. The error message says that your user does not have the necessary permissions to create an issue in that project. Probably the Outlook Plugin was integrated with a user who has the necessary permissions but your REST user might not have them.

Please ensure that the user account specified by $JIRA_USERNAME has the necessary permissions to create issues in the "SR" project. 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events