Hi All,
Invalid request payload when i am trying to assign issues in jira cloud using account id- please help
my $update_data1= '{ "fields": { "assignee": { "accountId": "712020:a9b1948f-5348-4f52-96bd-bc33dff89ead" } } }';
$jira_rest->PUT("https://cmegroup-sandbox-461.atlassian.net/rest/api/2/issue/$issue_key/assignee",$update_data1);
$VAR1 = '{"errorMessages":["Invalid request payload. Refer to the REST API documentation and try again."]}';
Because you are using the assignation endpoint and not edit endpoint you do not have to specify the field to update.
Payload should be like this
const bodyData = `{ "accountId": "5b10ac8d82e05b22cc7d4ef5" }`;
Regards
Thank you very much for the quick turnaround worked very well
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might first double check the account id (or have that person do it for you with the rest MYSELF endpoint).
Otherwise, I don't know the answer but I know where to look.... if you are comfortable with Postman, the libraries are linked on the API document page. My guess is you can get a clean "body" format there
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply.
I was able to use the below
Payload should be like this
const bodyData = `{ "accountId": "5b10ac8d82e05b22cc7d4ef5" }`;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.