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

 

 

 

 

 

1 answer

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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. 

Suggest an answer

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

Atlassian Community Events