Forums

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

When I am trying to create issue in Jira through API getting "project is required" error.

Puja Singh
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!
June 25, 2022

I have used  Post method  http://localhost:8080/rest/api/2/issue

I have used cookies authentication i.e. JSESSIONID="23909FF73EF9312672D50AC574B4D846" and Content-Type as application/json

Getting 400 Bad requests. Could you please help me in resolving this?

 

"fields" : 

  {
       "project" :
       {
            "key""TCS"
         
       },
       "summary""REST API.",
       "description""something went wrong",
       "issuetype"
       {
           "name""Bug"
          
       }
   }
}
{
    "errorMessages": [],
    "errors": {
        "issuetype""Could not find issuetype by id or name.",
        "project""project is required"
    }
}

1 answer

0 votes
Bill Sheboy
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.
June 26, 2022

Hi @Puja Singh -- Welcome to the Atlassian Community!

If you search in this community's posts, you may find several similar questions/posts, and what helped for those was:

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events