/* * "The code below should be added to the 'Additional Code' box on the Create subtask postfunction in order to set the assignee on the subtask to the assignee of the parent issue * All right, title and interest in this code snippet shall remain the exclusive intellectual property of Adaptavist Group Ltd and its affiliates. Customers with a valid ScriptRunner * license shall be granted a non-exclusive, non-transferable, freely revocable right to use this code snippet only within their own instance of Atlassian products. This licensing notice cannot be removed * or amended and must be included in any circumstances where the code snippet is shared by You or a third party." */// Get the assignee's Account Id from the parent issuedefparentIssueAssignee=issue.fields.assignee.accountId// Define the map required to set the assignee using their Account IDdefuser=[id:parentIssueAssignee]asMap// Set the assignee of the subtasksubtask.fields.assignee=user
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.