Defect #34804
closedAPI Post Subject, Project, Tracer and Status cannot be blanck
0%
Description
I'm trying to develop a python script with the API and I get the following error:
'<errors type="array"><error>Subject cannot be blank</error><error>Project cannot be blank</error><error>Tracker cannot be blank</error><error>Status cannot be blank</error></errors>'
My code is the following:
payload_issue_xml = '' \
'<issue>' \
'<project_id>' + str(project_id) '</project_id>' \
'<tracker_id>' + str(tracker_id)'</tracker_id>' \
'<priority_id>' + str(priority_id)+'</priority_id>' \
'<status_id>' + "1" + '</status_id>' \
'<subject>' +subject +'</subject>' \
'<due_date>' +due_date +'</due_date>' \
'<done_ratio>' + str(done_ratio) +'</done_ratio>' \
'</issue>'
r_issue = requests.post(url, params=payload_issue_xml)
Updated by Go MAEDA almost 4 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Please use forums for questions. Issues are used to report a bug, suggesting a new feature, or submitting a patch. Reading How to request help may be helpful for you.