Forums

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

getting access denied while creating jira using POST curl command

Velusamy_ Indhu
January 2, 2026

curl --request POST --url https://jiradc-cib-cluster02.prod.aws.jpmchase.net/rest/api/3/issue --user email@example.com:<api_token> --header Accept: application/json --header Content-Type: application/json --data {"fields":{"issuetype":{"id":"10000"},"parent":{"key":"epic-jira"},"summary":"Standalone application for release review ticket"},"update":{}}

 

 

I am using above curl command to create jira from devshell. I am passing only mandatory field's that are required to create jira. But it failing with authentication error

2 answers

1 vote
Trudy Claspill
Community Champion
January 2, 2026

Hello @Velusamy_ Indhu 

Welcome to the Atlassian community.

Did you create a scoped API token for the user?

Does you user you have specified have permission to create the issue?

Reviewing the example here I see problems in the data you are providing.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

It does not specify the project in which the issue should be created.

Also the value you have specified for "key" is not an actual issue key.

Trudy Claspill
Community Champion
January 5, 2026

@Trudy Claspill Thanks for checking this. I am trying to create jira using curl command for myself. I created api token in jira and used the same here. I was able to create story/tech-task/defect from jira. Now i am trying to do same in command prompt using curl command. For this do i need some permission's. Also for the key, i have mentioned actual  epic id in my payload. Can you please help on this

 

Thank you for the additional information @Velusamy_ Indhu 

Your post tags indicate you are using Jira Cloud, but based on the base URL you showed in your post (https://jiradc-cib-cluster02.prod.aws.jpmchase.net) it seems like you might actually be using Jira Data Center. I say that because it says "jiradc" and does not match the typical Jira Cloud base URL of "https://<yourCompany>.atlassian.net". 

To confirm if you are using Jira DC or Jira Cloud, in your Jira instance please click the Help button (the question mark button) near your avatar in the upper right corner and then select the About Jira option. Share with us the information displayed. If it is Jira DC it will show a version number similar to 9.12.17. If it is Jira Cloud there will not be a version number in that format.

 

Can you also provide a link to the documentation you are referencing for how to use the API?

Velusamy_ Indhu
January 5, 2026

@Trudy Claspill this seems to be DC , i can see the version on About Jira.

Attaching the link and screenshot belowJira DC.png

https://jiradc-cib-cluster02.prod.aws.jpmchase.net/secure/ViewProfile.jspa

 

 

I am referring below link for post curl command https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

 

 

Below is recent command i used 

 

curl --request POST --url https://jiradc-cib-cluster02.prod.aws.jpmchase.net/rest/api/3/issue --user 'email@example.com:<api_token>' --header "Accept: application/json" --header "Content-Type: application/json" --data "{"fields": {"issuetype": {"id": "10411"}, "project": {"id": "57101"}, "summary": "Standalone application for release review ticket"}, "update": {}}"

 

0 votes
Velusamy_ Indhu
January 4, 2026

@Trudy Claspill Thanks for checking this. I am trying to create jira using curl command for myself. I created api token in jira and used the same here. I was able to create story/tech-task/defect from jira. Now i am trying to do same in command prompt using curl command. For this do i need some permission's. Also for the key, i have mentioned actual  epic id in my payload. Can you please help on this. 

Suggest an answer

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

Atlassian Community Events