Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create subtask when other subtask is Resolved

Miroslav Brabenec July 17, 2015

I use such .sil script

if (project=="ZZ"){
  if (matches(summary, ".*Zadání termínů.*") ||customfield_10707=="Zadání termínů"){
    string #{parentIssue};
    #{parentIssue}=parent.id;
    createIssue(
            "ZZ",
            #{parentIssue},
            "Sub task",
            "Aktualizace CZ"
    );
  }
}

I would like to create new subtask, when subtask called "Zadání termínů" is closed. Is there any mistake? Syntax should be good. I have defined SIL listener on Resolve Issue Transition.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Raluca Panait
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2015

Hi Miroslav,

You can use the script below:

if (project=="ZZ"){
  if (matches(summary, ".*Zadání termínů.*") ||customfield_10707=="Zadání termínů"){
    createIssue(
            "ZZ",
            parent,
            "Sub-task",
            "Aktualizace CZ"
    );
  }
}

Regards,

Raluca

Miroslav Brabenec July 17, 2015

Thank to much. I works.

0 votes
Alexandra Topoloaga
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2015

Hi Miroslav,

Have you tried to use parent.key instead of parent.id here: #{parentIssue}=parent.id?
As you can see here, the second parameter of the routine should be parrentIssueKey.

Hope this helps,
Alexandra 

TAGS
AUG Leaders

Atlassian Community Events