Getting this Response through JMeter {"errorMessages":[],"errors":{"project":"project is required"}}

Balaji October 27, 2022

{
"fields": {
"project": {
"id": "Scrumbalaji"},
"summary": "TEST JIRA WS TOOL",
"issuetype": {
"name": "Bug"
}
}
}

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 27, 2022

Hi @Balaji ,

if you are trying to create an issue through a rest api call, please check parameters here https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

Parameter "Project", for example, requires a numeric value.

Hope this helps,

Fabio

Balaji October 27, 2022

Hi Fabio, Thanks for reply.

I have made JMeter setup as below using HTTP Request.

For Login - http://localhost/rest/auth/1/session - Got 200 Response code.

For Create Issue - http://localhost/rest/api/2/issue

Body of Request

{
"fields": {
"project": {
"id": "10100"},
"summary": "TOOL JIRA TEST BY REST",
"issuetype": {
"id": "10004"
}
}
}

 

Result:

Getting 400 Response code and Response as 

{"errorMessages":[],"errors":{"summary":"Field 'summary' cannot be set. It is not on the appropriate screen, or unknown."}}

I have downloaded latest JIRA 9.3 V.

Balaji October 27, 2022

I have added cookie Manager under JMeter. Now its working.

Thanks

Suggest an answer

Log in or Sign up to answer