I am unable to update a customfield within an issue. First I make a...
GET /rest/api/2/issue/{issueIdOrKey}
Then I locate the customField that I want to change in the response. It looks like the following...
"customfield_13300": [
"Item 1 (SWW-132)",
"Item 2 (SWW-133)",
"Item 3 (SWW-138)",
"Item 4 (SWW-139)",
"Item 5 (SWW-147)"
]
I then did a...
GET /rest/api/2/issue/{issueIdOrKey}/editmeta
and was returned the following regarding that customField...
"customfield_13300": {
"required": false,
"schema": {
"type": "any",
"custom": "com.riadalabs.jira.plugins.insight:rlabs-customfield-default-object",
"customId": 13300
},
"name": "Brand",
"operations": [ "add", "set", "remove" ]
}
I then want to update this information so I tried the following with success...
PUT /rest/api/2/issue/{issueIdOrKey}
{
"fields": {
"summary": "Updated Summary"
}
}
However, when I add the customField it does not update...
PUT /rest/api/2/issue/{issueIdOrKey}
{
"fields": {
"summary": "Updated Summary",
"customfield_13300": [
"Item 1 (SWW-132)",
"Item 2 (SWW-133)",
"Item 3 (SWW-138)",
"Item 5 (SWW-147)"
]
}
}
I get an error...
{ "errorMessages": [], "errors": { "customfield_13300": "expected Object" }}
Can someone help guide me in the right direction?
Based on your question I see that you use Inight plugin.
Did you try this: https://documentation.riada.io/display/ICV53/Insight+with+JIRA+REST-API ?
Regards,
Seba
Sebastian,
Thank you very much for that information. That was the piece that I was missing. It works now.
Sean
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sean Marraffa do you happen to remember the solution, I'm having the same issue right now and the page that @Sebastian Krzewiński posted is no longer available
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.