When I create a new issue, I would like to copy the description field from a template issue and put that description into the description field of the new issue, so it is displayed for the user on the create screen when it opens. We had the script in DataCenter but it doesn't work in Cloud.
I started here Set a default description when an issue is created for reference code but do not know how to pull the data from the template work item.
Below is how I have it started.
// This script should be added to a Behavior mapped to the relevant project and issue type(s)
const descField = getFieldById("description")
const summary = getFieldById("summary")
const acceptancefield = getFieldById("customfield_10143")
issueTemplate = issueManager.getIssueObject("AATPA-724")
getFieldById("description").setValue(issueTemplate.description)
getFieldById("description").setValue(issueTemplate.summary)
getFieldById("description").setValue(issueTemplate.getCustomFieldValue("customfield_10143"))
summary.setFormValue(issueTemplate.summary)