Description
Problem
When we try to use PATCH on the Features API, we are receiving an issue that says:
"Cannot update feature with id XXXX. descriptionRich must be between 0 and 250 characters." like the image below:
Environment
Jira Align 10.107.4
Steps to Reproduce
Firstly is necessary to set up the "Rich Text Format" in the Jira Align, to do that, we need:
1- Enable the master toggles 11 (Formatted Text) and 26 (Rich Text Editing).
2- Go to Jira Align -> Administration -> Jira Settings -> Jira Setup -> Rich Text Format and set it to "Jira Renderer field".
Secondly is necessary also that a Jira project stay synced with Jira Align. Create an Epic on the Jira, where the Epic's description is written with tag notation and also, and the length must be higher than 250 characters, like the image below:
After creating the Epic in Jira, wait for the connector to sync with Jira Align.
After the Epic from Jira reach the Jira Align, using the API -> https://alignsupport.jiraalign.com/rest/align/api/2/Features/ for Features, and with the verb PATCH, run the code below in the body section, for example, to simulate the issue:
[ { "op": "replace", "path": "/parentId", "value": 2870 } ]
Expected Results
The Feature should be updated without any issue.
Actual Results
It is receiving a 400 error - Bad Request - with the following message:
"Cannot update feature with id XXXXX. descriptionRich must be between 0 and 250 characters."
Workaround
There is no workaround for this action.
Notes
This issue is only happening at the API level, if we try to update via UI the Feature is updated without any problem.