How do I set the default value of a custom field programatically through Jira's REST API?

I am trying to add a "Message Custom Field (for view)" to my project. I am able to create the custom field through the REST API, but I am unable to set the default value programmatically. Since this is a read-only field, it will not be displayed unless the default value is defined.


1 answer

0 vote

Hi Anh-Minh,

I believe you're running into the limitation from the API.  Take a look at the Suggestion Add, edit, or delete custom fields in REST API:

At the moment, it's possible to get some info by retrieving editmeta :{issueIdOrKey}/editmeta

But you cannot add, edit, or delete custom fields via JIRA REST API (as you can in the admin section).

The Suggestion includes a workaround that may work for you:

The third party plugin Jira Customfield Editor provides REST endpoints for the CRUD operations on custom fields.

Please be sure to vote on the issue to add impact and add your use case to the comments.



Hi Branden,

Thank you for the response! I was hoping that your response would be different :/

While looking for other possibilities, I discovered the "Text Field (read only)" custom field. The description says that the value for this field can only be set programmatically. I tried setting the value via POST and PUT calls but was unsuccessful. Can you help explain what type of language I would need to set the value for this custom field?

Thank you in advance for your time.


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

13,255 views 15 14
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