Hello
I am looking for a way to instantiate a Simple TaskLists template at issue creation, and I start with a Script Runner issue listener on create event
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.IssueManager
import com.atlassian.jira.issue.MutableIssue
MutableIssue mutableIssue = (MutableIssue)issue;
mutableIssue.setDescription((issue.description ?: "") + "\n{tasklist}Validation{tasklist}");
IssueManager issueManager = ComponentAccessor.getIssueManager()
issueManager.updateIssue(event.user, mutableIssue, com.atlassian.jira.event.type.EventDispatchOption.DO_NOT_DISPATCH, false);
But it does not produce expected effect: "tasklist" macro is not evaluated and replaced by a list of "task:id=xxx" macros in description.
I guess this evaluation and replacement only happens in web editor.
So is there a way to programmatically call "tasklist" macro evaluation, so that my listener can generate tasks list from template?