REST request for field based on JIRA Database Values Plugin

Hello everybody!

Is any way to change a field based on JIRA Database Values Plugin ( with HTTP request to JIRA REST interface?

We tried to find answer to this question without any success. If we send the value as "key:...", we see a response with information that only a string can be sent.

If we send a value as a string (never mind, string value or ID from database), we can see a message "Unknown ID: <value>" in JIRA's field editor.

Is it possible to set the field of this type by REST request or we can not use this plugin for our needs?

Thank you very much in advance!

2 answers

Yes, you are right! Thank you!

To correctly set the value of this data type, the value must be an ID from database. Besides, it must be in string format. For example, success will be if I use in REST request something like next:


Error {"errorMessages":[],"errors":{"customfield_10870":"Operation value must be a string"}} will be returned if I use:


If "1" isn't an existing ID from database then there's no error response from JIRA server but you can find a message in the Web GUI for the updating issue like next:

Environment New: Unknown id: 1

The plugin stores the primary key in JIRA itself, so if you also do this through the REST api, then I guess it should work, but I have not tried it myself.

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot