-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Component/s: Automation - Action - Create service desk request
-
None
-
2
-
Severity 3 - Minor
-
11
Issue Summary
When creating or editing automation rules, the action "Create work item with request type" does not show a project the user has the required permissions for. Using the simple "Create work item" action does show the project.
The dropdown appears static and does not search or load beyond an initial subset of projects.
Reason:
Automation UI has a hardcoded pagination limit when fetching service desk projects via /rest/servicedeskapi/servicedesk.
Fix required: The permanent solution involving proper Pagination or filtered project lookup in the Automation UI.
Steps to Reproduce
- Ensure the instance has over 400 projects
- Create an automation rule with an action to create work item with request type.
- In the project drop down in the UI, try to find a project which is far down the list.
Expected Results
Project should be available to select
Actual Results
The project is not available to be selected. Searching for the project key does not provide results. It seems the UI fetches multiple pages but stops at a specific point and projects further down the list cannot be selected/retrieved.
Workaround
Instead of the built-in action, use the "Send web request" action to call the JSM API directly. This creates the issue with the request type in a single atomic call, which is exactly what the "Checklists for Jira" app requires.
- URL: {{baseUrl/rest/servicedeskapi/request}}
- Method: POST
- Body:
{{}}
{ "serviceDeskId": "<SD_ID>", "requestTypeId": "<REQ_TYPE_ID>", "requestFieldValues": { "summary": "{{issue.summary}}", "description": "{{issue.description}}" } }
{{}}
Note:
- You must use the Service Desk ID, not the Project ID. You can find this by calling GET /rest/servicedeskapi/servicedesk
- You can get the full list of fields for the request type by calling GET /rest/servicedeskapi/servicedesk/{id}/requesttype/{id}/field, and then just plug those field keys into the web request body.