Help!
I have wrote the following json to pull through confiform data to create a Jira ticket using IFTTT rule:
{ "fields": { "summary": "[entry.ActionSummary]", "issuetype": { "name": "Task" }, "project": { "key": "FCASAP" }, "description": "[entry.ActDescription]", "customfield_10200": "[entry.JiraTeam]", "labels": [ "[entry.Labels]" ], "customfield_11710": { "name": "[entry.Objective]" }, "customfield_11402": { "name": "[entry.KeyResult]" }, "priority": { "name": "[entry.Priority.label]" }, "customfield_10202": "[entry._now.jiraDate]", "customfield_10407": "[entry.ActAcceptanceCrit]", "duedate": "[entry.DueDate.jiraDate]" } }
I receive an error that KR( Key Results)":"data was not an array "," "Objective":"data was not an array".
I have attempted to use "name", "label" and ID.
Hi @Caitlin Brown
Welcome to the Atlassian Community!
You’re getting “data was not an array” because those two custom fields (Objective = customfield_11710, KR = customfield_11402) are multi-select fields in Jira. For multi-selects, Jira expects an array of option objects, not a single object/string.
Try this one.
{
"fields": {
"summary": "[entry.ActionSummary]",
"issuetype": { "name": "Task" },
"project": { "key": "FCASAP" },
"description": "[entry.ActDescription]",
"customfield_10200": { "id": "[entry.JiraTeam.id]" },
"labels": [entry.Labels.asJsonArray],
"customfield_11710": [ { "value": "[entry.Objective]" } ],
"customfield_11402": [ { "value": "[entry.KeyResult]" } ],
"priority": { "name": "[entry.Priority.label]" },
"customfield_10202": "[entry._now.jiraDate]",
"customfield_10407": "[entry.ActAcceptanceCrit]",
"duedate": "[entry.DueDate.jiraDate]"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.