I am able to create the issues in a project using API by sending the below JSON.
request.body = {
"fields": {
"project": {
"key": "ABC"
},
"summary": "testing",
"description": "sample task",
"issuetype": {
"name": "Bug"
}
}.to_json
In another project there are the following mandatory fields: Epic Link, Environment Identified, Affects Version/s.
I tried the passing the parameters in the below format in the above json but it says bad request.
"epic_link": "TestErrors",
"environment": "Staging",
"versions": "test",
Can you help me with the correct key names and the type of values I must give for the above 3 fields?