Hi,
I have a Power Custom Field on create issue screen. This is a field required by the validator - it has to be set, otherwise Jira won't create the issue.
If I try to create the issue programmaticaly using createIssue() routine we get an error:
/rest/keplerrominfo/refapp/latest/async-script/checkScript [c.k.j.c.i.routines.issue.CreateIssueRoutine] Cannot save new issue; error was com.keplerrominfo.jira.commons.hostapp.JiraOperationException: Cannot save new issue; error was com.keplerrominfo.sil.lang.IncompatibleValueException: Cannot convert array [STRING[]] {here_is_my_string} to structure KPOption. Different number of elementsI have tried creating mappings using two-dimensional array, or string with "|" in the middle - nothing helps:
string[][] CFmappings = {"assignee", "me", "my_PCF_field_name", {"my_pcf_field_label","my_pcf_field_value"}};
//string[] CFmappings = {"assignee", "me", "my_PCF_field_name", "my_pcf_field_label|my_pcf_field_value"};
string this_test_key = createIssue("TEST", "", "Task", "Test", "Minor", "Test", "", "", "", "", CFmappings);
runnerLog(this_test_key);How can I create issue using SIL if there is a PCF field with validation on create?
EDIT: clarification/wording