Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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 (https://marketplace.atlassian.com/plugins/org.deblauwe.jira.plugin.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:

"customfield_10870":"1"

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

"customfield_10870":1

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 Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

798 views 7 24
Read article

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