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

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

FYI,

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

just installed JJupin v2.6.3

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.

Hi David,

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

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

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.

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);

Hi Florin,

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

David

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...

365 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