Script runner addon - sub tasks not being created

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 vote

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?

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.

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

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

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?

check the logs...?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

358 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you