Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-4251

descriptionRich error on API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 10.110.0
    • None
    • REST API
    • 1
    • Severity 2 - Major
    • No

    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.

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          78 kB
        2. screenshot-2.png
          screenshot-2.png
          144 kB

        Activity

          People

            kforeman@atlassian.com Kyle Foreman
            f9fc804f30c6 Luiz Felipe Arruda
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Backbone Issue Sync