Project

General

Profile

Actions

Defect #8667

closed

How to create tickets with custom fields?

Added by Sanjay Kashalkar over 13 years ago. Updated over 13 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hello Jean,
You mentioned in ticket #6345 that:

You can now use the piece of xml that the API returns to update custom fields:

What I get back from the REST API is:
<custom_fields>
<custom_field name="Heading Number" id="2"/>
<custom_field name="abc_id" id="14"/>
</custom_fields>

Now, im trying to create a ticket with custom fields with the following data:

&lt;custom_fields&gt;
&lt;custom_field name="abc_id" id="14"&gt;
&lt;value&gt;RQ_1&lt;/value&gt;
&lt;/custom_field&gt;
&lt;/custom_fields&gt;

but this continues to result in (422) Unprocessable Entity.

I know the REST API is in beta status but I hope you can help me anyway.

Actions #1

Updated by Etienne Massip over 13 years ago

  • Status changed from New to Closed
  • Assignee deleted (Jean-Philippe Lang)
  • Resolution set to Invalid
Actions

Also available in: Atom PDF