You may need to update the issue as well. Let me share how to update system fields, text field and number field using #shell script of course.
#UpdateIssue #JiraRESTAPI
Endpoint: GET /rest/api/3/issue/an-233
Code: https://github.com/sparxsys/jira-shell-scripts/blob/main/editIssue.sh
Topic