Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Troubleshooting Autotransition Sub-tasks

david greenfield September 10, 2013

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

2 votes
Answer accepted
david greenfield September 12, 2013

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

0 votes
david greenfield September 12, 2013

Hi Florin,

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

David

0 votes
Florin Manaila
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.
September 11, 2013

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

0 votes
david greenfield September 11, 2013

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.

0 votes
Alexandru_Iacob
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.
September 11, 2013

Hi David,

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

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

0 votes
david greenfield September 11, 2013

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.

0 votes
david greenfield September 10, 2013

FYI,

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

just installed JJupin v2.6.3

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events