Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-93443

Create issue through API - paragraph field content table with indentation

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Editor - Cloud
    • None
    • 1
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Suggestion

      Currently, the Jira API does not support indentation within table cells. It would be great if we added support for it. 

      Issue Summary

      When we use API to create an issue  and in the payload, we have a paragraph field with content type table and with indentation we get the response:  INVALID_INPUT

      Example of indentation:

      "marks": [
          {
              "type": "indentation",
              "attrs": {
                   "level": 1
             }
           }
          ] 

      Steps to Reproduce

      1. Use an API to create an issue 
      2. Create a payload with a content type table and with indentation. Example: 
      {
        "fields": {
         "customfield_10122": {
            "type": "doc",
            "version": 1,
                       "content": [
                             {
                  "type": "table",
                  "attrs": {
                      "isNumberColumnEnabled": false,
                      "layout": "default",
                      "localId": "exampleID",
                      "width": 624
                  },
                  "content": [
                      {
                          "type": "tableRow",
                          "content": [
                              {
                                  "type": "tableCell",
                                  "attrs": {},
                                  "content": [
                                      {
                                          "type": "heading",
                                          "attrs": {
                                              "level": 6
                                          },
                                          "content": [
                                              {
                                                  "type": "text",
                                                  "text": "Purpose: "
                                              }
                                          ]
                                      },
                                      {
                                          "type": "paragraph",
                                          "content": [
                                              {
                                                  "type": "text",
                                                  "text": "testing purpose field"
                                              }
                                          ],
                                          "marks": [
                                              {
                                                  "type": "indentation",
                                                  "attrs": {
                                                      "level": 1
                                                  }
                                              }
                                          ]
                                      }
                                  ]
                              }
                          ]
                      }
                  ]
              }
                  ]
            
          }, 

            3. API call will return status 400 INVALID_INPUT

      Expected Results

      The issue is created and the API returns a status 200

      Actual Results

      API call will return status 400 INVALID_INPUT

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

          Form Name

            [JRACLOUD-93443] Create issue through API - paragraph field content table with indentation

            There are no comments yet on this issue.

              Unassigned Unassigned
              3c599440d2f9 Igor Stojkovic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: