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

The Workflow REST API does not return startPointLayout and layout if the Workflow has never been editied.

    XMLWordPrintable

Details

    Description

      Issue Summary

      When using the Bulk Get Workflows REST API

      If the Workflow has not been edited then the startPointLayout and layout fields are not populated.

      Steps to Reproduce

      1. Create a new Company Managed Project
      2. Make a REST call to /rest/api/3/workflow/search to get the entityId of the Workflow for the Project
        curl --silent --user <email>:<token> --request GET \
        --url 'https://<yoursite>.atlassian.net/rest/api/3/workflow/search' \
        --header 'Accept: application/json'
        
      1. Make a call to get the details of the Workflow
        curl --silent --user <email>:<token> --request POST \
        --url 'https://<yoursite>.atlassian.net/rest/api/3/workflows' \
        --header 'Content-type: application/json' \
        --header 'Accept: application/json' \
        --data-raw '{"workflowIds":["<entityId>"]}'
        

      Expected Results

      The output will have the startPointLayout and layout fields.

            "startPointLayout": {
              "x": 605,
              "y": 17.39998779296876
            },
      ...
            "statuses": [
              {
                "statusReference": "10001",
                "layout": {
                  "x": 580.1062498092651,
                  "y": 167.39998779296877
                },
                "properties": {},
                "deprecated": false
              },
              {
                "statusReference": "10000",
                "layout": {
                  "x": 578.5616703033447,
                  "y": 67.39998779296876
                },
                "properties": {},
                "deprecated": false
              },
              {
                "statusReference": "3",
                "layout": {
                  "x": 557.7937507629395,
                  "y": 117.39998779296876
                },
                "properties": {},
                "deprecated": false
              }
            ],
      

      Actual Results

      The output does not have startPointLayout and layout fields.

            "statuses": [
              {
                "statusReference": "10000",
                "properties": {},
                "deprecated": false
              },
              {
                "statusReference": "10001",
                "properties": {},
                "deprecated": false
              },
              {
                "statusReference": "3",
                "properties": {},
                "deprecated": false
              }
            ],
      

      Workaround

      Edit the Workflow and save the Draft.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jrichards@atlassian.com James Richards
              Votes:
              37 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: