Project

General

Profile

Actions

Defect #34804

closed

API Post Subject, Project, Tracer and Status cannot be blanck

Added by David Costa about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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)

Actions #1

Updated by Go MAEDA about 3 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.

Actions

Also available in: Atom PDF