{
"type": "object",
"properties": {
"PCID": {
"type": "string",
"description": "Pink Connect ID"
},
"name": {
"type": "string",
"description": "Form name"
},
"description": {
"type": "string",
"description": "Form description"
},
"projectKey": {
"type": "string",
"description": "Jira project key to associate form with"
},
"issueType": {
"type": "string",
"description": "Issue type to create when form is submitted"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text",
"textarea",
"select",
"multiselect",
"checkbox",
"radio",
"date",
"email"
],
"description": "Field type"
},
"label": {
"type": "string",
"description": "Field label"
},
"required": {
"type": "boolean",
"default": false,
"description": "Whether field is required"
},
"options": {
"type": "array",
"items": {
"type": "string"
},
"description": "Options for select/radio fields"
}
}
},
"description": "Form fields"
}
},
"required": [
"PCID",
"name",
"projectKey",
"issueType",
"fields"
]
}