It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to update values of CustomField

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? 

1 answer

1 accepted

0 votes
Answer accepted

Hi @Sean Marraffa 

 

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

365 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you