I have a transition on workflow when i create a sub-task using the Script Runner plugin. The sub-task have a custom field named "Checklist" from ToDo List Custom Field plugin (https://marketplace.atlassian.com/plugins/ru.mail.jira.plugins.todolist) that have default options previously set.
After execute this transition the sub-task is created, however this custom field is corrupted. Don't show any options and can't be edit:
2015-05-19_todoError.png
If i created the sub-task manually the custom field appears correctly:
2015-05-19_todoCorrect.png
I don't know what i'm missing.
Thank you for your help in advance!
Community moderators have prevented the ability to post new answers.
Hello,
Custom field should have value in json. Try, please, []
Hello, Andrey.
I set a default value to the ToDo List Custom Field in Custom Fields configuration with four items. The field is placed in the default screen of subtask "Contract Renew". In the workflow i used the script "Create subtask" from ScriptRunner and in the field "Additional issue actions" i set the summary of the subtask and disable copy links and attachments. I don't set any values to the ToDo List Custom field.
import com.onresolve.scriptrunner.runner.util.UserMessageUtil import com.atlassian.jira.issue.Issue import com.atlassian.jira.ComponentManager def resumodemanda = 'Contract Renew: ' + cfValues['Contract Number'] resumodemanda.length() <= 255 ? (sumario = resumodemanda) : (sumario = resumodemanda.substring(0,255)) issue.summary = sumario checkLink = {link -> false} checkAttachment = {attachment -> false} UserMessageUtil.success('Subtask Contract Renew created success!')
When i create the subtask manually it works ok.
Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
What value do you set into field via scriptrunner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.