Provide a REST API to get the Forms layout with options of data connections

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: API

      Problem Definition

      The customer is aiming to get the layout of the Forms with the data connection options.

      as for now, the only way to get the layout of the form is from the database, from which not even there the JSON shows the options of the data connections.

      The actual REST API is only exporting data, and the need to get the details of the form has been requested for documentation.

      Actual Result:

      "design": {
        "conditions": {
          "113": {
                "t": "sh",
                "i": { "co": { "cIds": { "109": ["3", "342102"] } } },
                "o": { "sIds": ["7"] }
            }
        },
        "questions": {
          "109": {
              "type": "cd",
              "label": "System eller applikasjon",
              "description": "",
              "validation": { "rq": true },
              "dcId": "299c357b-f5f8-471b-86d1-700f4ba78a3a",
              "questionKey": "customfield_22860"
            }
        }
      }
      

      Suggested Solution:

      Provide the info of the form with:

      "design": {
        "conditions": {
          "113": {
                "t": "sh",
                "i": { "co": { "cIds": { "109": ["3", "342102"] } } },
                "o": { "sIds": ["7"] }
            }
        },
        "questions": {
          "109": {
                    "type": "cd",
                    "label": "System eller applikasjon",
                    "description": "",
                    "validation": {
                        "rq": true
                    },
                    "choices": [
                        {
                            "id": "183375",
                            "label": "A-krim"
                        },
                        {
                            "id": "183627",
                            "label": "A-ordningen"
                        },
                        {
                            "id": "184201",
                            "label": "Administrasjonsløsning for analyserom"
                        },
                        {
                            "id": "183373",
                            "label": "Adobe Acrobat Pro"
                        },
                        {
                            "id": "342102",
                            "label": "Adobe Creative Cloud"
                        }
                      ],
                      "dcId": "299c357b-f5f8-471b-86d1-700f4ba78a3a",
                      "questionKey": "customfield_22860"
          }
      }
      

      Workaround

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

            Assignee:
            Unassigned
            Reporter:
            Francisco Crespo Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: