How to update the text Field (read only) custom field in Jira Data Center
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Jira has a Text Field (read only) in the custom field. This KB explains ways how you can modify and update this custom field.
Environment
All Jira versions.
Solution
You can either update the Text field (read-only) via REST API or import from Mantis. The maximum character length is 255.
For Jira version before 8.4, you can use import from Mantis.
Starting from Jira 8.4, Jira no longer supports built-in importers that are dedicated to specific applications, including Mantis. You can still import data to Jira in CSV or JSON format.
REST API
You can use the REST API like the following to update this field. In this example, the REST API will update custom field 10201 which is the read-only text field in issue TEST-1 to "hello world".
1
curl -w '%{http_code}' -u admin:admin_password -H "Content-Type: application/json" -X PUT http://JIRA_URL/rest/api/2/issue/TEST-1 --data '{ "fields": {"customfield_10201": "hello world"} }'
Was this helpful?