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

Puja Singh 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