Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Не выводятся пользовательские поля

Dmitry March 19, 2018

Не выводятся пользовательские поля при создании заявки с помощью sil скрипта.

string iissuetype = issueType;
string isummary = summary;
string idescription = description;
number icount = customfield_19006;
string isys = customfield_19022;
string idate = customfield_19023;
string idopzam = customfield_15218;

if ((project == "SMCUM") and (iissuetype == "Снятие с мониторинга оборудования")){
if ((icount > 5) and (isys == "Orange")){
string k = createIssue("SRSMCUM", "", "Снятие с мониторинга оборудования", summary, "", description, "", "", "", "", {customfield_19022, customfield_19006, customfield_19023, customfield_15218});
return false, "Заявка создана в проекте Сектор развития систем мониторинга ЦУМ";
}
}

1 answer

0 votes
Jonathan Muse _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 29, 2018

Дмитрий, это сценарий проверки подлинности? Если это так, вы не должны действительно изменять проблему в скрипте проверки подлинности и вместо этого использовать функцию post. Однако настраиваемый параметр сопоставления полей принимает пару значений имени так:

if ((project == "SMCUM") and (iissuetype == "Снятие с мониторинга оборудования")){
if ((icount > 5) and (isys == "Orange")){
string k = createIssue("SRSMCUM", "", "Снятие с мониторинга оборудования", summary, "", description, "", "", "", "", {"customfield_19022","Orange","customfield_19006","Blue","customfield_19023","Green","customfield_15218","Yellow"});
return false, "Заявка создана в проекте Сектор развития систем мониторинга ЦУМ";
}
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events