Contents

Add Custom Field

Adds new Custom Field to the project.

Role

Administrator
Project Administrator

Method

POST

URL

/api/v2/projects/:projectIdOrKey/customFields

URL parameters

Parameter NameTypeDescription
projectIdOrKeyStringProject ID or Project Key

Form parameters

Content-Type:application/x-www-form-urlencoded
Parameter NameTypeDescription
typeId (Required)NumberType ID of Custom field
1: Text
2: Sentence
3: Number
4: Date
5: Single list
6: Multiple list
7: Checkbox
8: Radio
name (Required)StringName
applicableIssueTypes[]
(Multiple)
NumberType ID to enable Custom fields
empty=enable for all issue types
descriptionStringDescription
requiredBooleanTrue to make the Custom field required

Added parameters (Number)

Parameter NameTypeDescription
minNumberminimum value
maxNumbermaximum value
initialValueNumberinitial value
unitStringunit

Added parameters (Date)

Parameter NameTypeDescription
minStringminimum (yyyy-MM-dd)
maxStringmaximum (yyyy-MM-dd)
initialValueTypeNumber1:today, 2: today + initialShift, 3:specified day
initialDateStringinitial (yyyy-MM-dd)
initialShiftNumberdate differences

Added parameters (List)

Parameter NameTypeDescription
items[]
(Multiple)
Stringlist
allowInputBooleantrue to allow “Other” input form
allowAddItemBooleantrue to allow add list

Response example

Status Line / Response Header

HTTP/1.1 200 OK
Content-Type:application/json;charset=utf-8

Response Body

{
    "id": 2,
    "projectId": 5,
    "typeId": 1,
    "name": "Attribute for Bug",
    "description": "",
    "required": false,
    "applicableIssueTypes": [1]
}