Troubleshooting Autotransition Sub-tasks

I am trying to autotransition all the subtasks associated to an issue triggered by the parent issue changing status.

I've added the POST function from the great example provided, and verified that the transition is allowed by performing the transition it by hand.

The transition doesn't seem to ever fire and the sub-tasks are unchanged.

I've modified the code to hardcode the subtask key and still it remains unchanged. Here is my code ("Starting Task" is the sub-task transition I'm trying to fire):

string st; 
for (st in subtasks(key)) {
//    if (%st%.status=="Sub Task Completed") {
        autotransition("Starting Task", "AL-436");
//    }
}

Yet Issue AL-436, a subtask, remains unchanged. What am I missing?

David

7 answers

1 accepted

This widget could not be displayed.

The log showed that the transition didn't exist. In fact it did exist but wasn't available from the status of the issues/stories. I'd designated the transition as "Starting Task" which moved tasks from Open to In Progress. But the stories at that point were in status "Task Completed" which move back to In Progress via Story Failed QA transition, not the Starting Task transition.

Florin, thank you for your help resolving this. The plugin really enhances Jira/Agile and we are going to make heavy use of it. You were very responsive (considering you are in Europe and we are in USA) and quickly zeroed in on the problem and recommended solution. Plus I learned a lot.

Thanks very much,

David

This widget could not be displayed.

FYI,

Version info: Jira v6.0.3#6099-sha1:c205478

just installed JJupin v2.6.3

This widget could not be displayed.

I also notice that inside the code editor, the auto-complete pops up but is always blank. Maybe that suggests an incomplete install? Just an idea.

This widget could not be displayed.

Hi David,

On what transition step have you added the SIL post function?

Are there any errors in the log when perfroming the transition?

This widget could not be displayed.

The transition post function is on a step related to the parent story, "Reject," designating that QA found an issue and is sending it back to Development. I want all the sub-tasks previously marked as "Sub Task Completed" to follow the story, so the task transition I want to trigger is the one named "Starting Task".

No errors in the log. I had the admins restart Jira after installing the plugin, just in case.

This widget could not be displayed.

Can you send us a piece of the logs containing the moment of the autotransition? Please make sure that logging is set to DEBUG in Administration -> Logging & Profiling for package "com.keplerrominfo".

Either put it here or send an email to jira-support (at) kepler-rominfo (dot) com.

In the meanwhile, you can also add another "true" parameter at the end and see how that goes.

autotransition("Starting Task", "AL-436", true);

This widget could not be displayed.

Hi Florin,

I appreciate your help. I've sent the logs via email.

David

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

532 views 3 19
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