After deleting a Jira project, it is no longer possible to edit an automation.
The user interface shows the following error:
Unable to connect to the server
UI logs may show the following DEBUG error:
Followed by the following stack trace:
Under normal circumstances it is possible to delete a project in Jira and still be possible to edit the automation if it is a multi-project automation. However, if the deleted project is the template project for the automation, then this issue can occur.
Set up a REST API request to update the template project. Included Below are sample curl requests that can be converted to Postman or Bruno requests.
First, identify the ID of the automation. Edit the highlighted areas to fit your situation.
curl --request GET \ --user <user>:<password> \ --url 'https://<connectall_host_url>/ConnectAll/api/private/v2/automations?pageSize=100'
Second, issue a patch request using the ID of the automation and a valid project you wish to use for a template.
curl --request PATCH \ --user <user>:<password> \ --url 'https://<connectall_host_url>/ConnectAll/api/private/v2/automations/<id>/applications/source' \ --header 'content-type: application/json' \ --data '{ "templateProject": "SAMPLE"}'