Script runner addon - sub tasks not being created

Jesus Garcia August 24, 2014

I have a task composed of several subtasks that have to be done sequentially. I want to create all of them when a task is created, but I couldn't make the script runner plugin to work. I have added a post function like the image, but it doesn't work. I create the task and no sub task is created. I have checked that the post functions work adding another one which was executed correctly. Is there anything else I have to do?

Thanks for your help.

1 answer

1 accepted

0 votes
Answer accepted
JamieA
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.
August 24, 2014

That should be fine. If you remove your additional code does it work?

> I have checked that the post functions work adding another one which was executed correctly

Can you explain what this means?

Jesus Garcia August 25, 2014

No, it doesn't work by removing the additional code. I have 6 sub tasks that are supposed to be created... I don't know if they are too many. Can that be the problem?

What I mean by that sentence is that I have other post functions in the same transition that are executed correctly. All of them except for the ones related to sub task creation.

Jesus Garcia August 25, 2014

Hi again,

I have just realized that in the "create" transition it doesn't work, but in another transition between 2 states it does work. Am I missing something or is this how it is supposed to work?

Thanks

JamieA
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.
August 26, 2014

Should work fine on create, just make sure the create sub-task post-functions are last.

Sandra Axelsdóttir [Tempo] November 25, 2014

I have a problem getting this to work. I set the post function last, but it's still not creating the subtask. Any other tips?

JamieA
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.
November 25, 2014

check the logs...?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events