Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-14460

Cannot publish an automation rule when using the "Create issue with a request type" action, and having all the request type fields marked as hidden

XMLWordPrintable

      Issue Summary

      An error will be shown when trying to pusblish an automation rule that has the "Create issue with a request type" action within its flow and the request type selected under its configuration has the fields marked as hidden.

      Steps to Reproduce

      1. Create an automation rule and add the "Create issue with a request type" within its flow.
      2. Open the action configuration and make sure to select a Request type where all of its fields are marked as hidden under Project Settings > Request types > "Request type name".
      3. Save and Publish the rule.

      Expected Results

      The rule saves successfully.

      Actual Results

      An error occurs and the automation rule can't be published. While opening the browser dev tools, the following error message can be seen:

      {
          "errorMessage": null,
          "message": null,
          "warningMessages": [],
          "errorMessages": [],
          "errors": {
              "component:__NEW__COMPONENT__2cff3169-1f10-4de5-be8b-06fd17963e31": {
                  "requestType": "No valid fields could be retrieved for this service project and request type. Do they still exist and does the rule actor have access?"
              }
          },
          "status": 400
      } 

      Workaround

      Include a non-hidden field under the Request type configuration. Or change the logic of the rule by removing the "Create issue with a request type" action, and instead use an "Issue create" followed by an "Edit request type" action.

              Unassigned Unassigned
              9454f07e6289 Rogelio Martinez Chavez
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: