Cannot change issue type when using bulk move

Hello,

I’m calling a bulk move issue api using forge trigger and I keep getting the error “Some of the target issuetypes are not valid.”. I followed the bulk move issue documentation and here is how I call it.

const move = await api.asApp().requestJira(route`/rest/api/3/bulk/issues/move`, {
      method: "POST",
      headers: {
        Accept: "application/json",
        "Content-Type": "application/json",
      },
      body: JSON.stringify(bodyData),
    });

my stringified bodyData is something like this:

{
  "sendBulkNotification": true,
  "targetToSourcesMapping": {
    "TESTB,1002": {
      "inferClassificationDefaults": true,
      "inferFieldDefaults": false,
      "inferStatusDefaults": true,
      "inferSubtaskTypeDefault": true,
      "issueIdsOrKeys": [
        "TESTA-1"
      ],
      "targetMandatoryFields": [
        {
          "fields": {
            "issuetype": {
              "retain": false,
              "type": "raw",
              "value": [
                "10034"
              ]
            },
            "priority": {
              "retain": false,
              "type": "raw",
              "value": [
                "2"
              ]
            }
          }
        }
      ]
    }
  }
}

I’m changing the issue type since there is a different set of issue types on the other project.
I’m trying to match the issuetype (e.g. 10004 (Bug) on TESTA, and 10034 (Bug) on TESTB) but kept getting the error even if the issueId exists.
The permissions on manifest are also declared.