Hi,
I am trying to add the custom field to my issue using REST API,but its not working for me.
REST : http://localhost:8222/rest/api/2/issue
Method : POST
Body :
---------------------------------------------------------------
{
"fields": {
"project": {
"key": "TRAIL"
},
"summary": "san2_bug12",
"description" : "desc",
"priority": {
"id": "1"
},
"issuetype": {
"name": "Bug"
}
},
"customfield_10101" : {"name" : "custom"}
}
----------------------------------------------------------------
I am getting error,
----------------------------------------
{
"errorMessages": [],
"errors": {
"customfield_10101": "AginTesting is required."
}
}
---------------------------------------
It will work when i change to the custom field to optional, but i need to add the custom filed to issue.
Please help me.
Hello,
What is the type of your custom field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try like this
{
"fields": {
"project": {
"key": "TRAIL"
},
"summary": "san2_bug12",
"description" : "desc",
"priority": {
"id": "1"
},
"issuetype": {
"name": "Bug"
}
},
"customfield_10101" : "custom"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.