I've created a sub-task of type "Demande de modification" and developed a SIL script for a post-function. My goal is to assign the sub-task to Group only when the assignee of the parent issue belongs to Tthis Group . Here's my current code:
string subTaskKey = createIssue(project, key, "Demande de modification", "Demande de modification");
linkIssue(subTaskKey, key, "Relates");
if (%key%.assignee == "GroupeB"){
%subTaskKey%.assignee = "GroupeB";
}
However, the current code doesn't take into account whether the parent issue's assignee is from the Group . How can I modify the code to achieve this specific condition?