Hi,
I want do migration all 500 tasks with API, I must fill up the all fields in my form, I got the return
400 b'{"errorMessages":["Invalid request payload. Refer to the REST API documentation and try again."]}'
My payload looks like this:
payload = {
"form": {
"answers": {
"1": {"text": description},
"2": {"text": summary},
}
},
"isAdfRequest": False,
"requestFieldValues":
{
"customfield_10002": [int(mapping(dict_of_projects,project_name))], # organizacja
},
"fields": {
"Numer telefonu": str(phone(bug_id)), # Numer Telefonu
"Osoba Zgłaszająca": str(name_surname(bug_id)),
"Mantysa URL": str(create_a_mantis_link(bug_id)),
"Adres email": str(find_mail(bug_id)),
},
"requestParticipants": [],
"requestTypeId": "33",
"serviceDeskId": "2",
}
Also I try like this: "fields": {
"customfield_10298": str(phone(bug_id)),
"customfield_10299": str(name_surname(bug_id)),
"customfield_10224": str(create_a_mantis_link(bug_id)),
"customfield_10297": str(find_mail(bug_id)),
},
I would like to use Python to do a API, I can't find in Documentation answer to my question. What I do wrong?