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
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
Hi Florin,
I appreciate your help. I've sent the logs via email.
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
On what transition step have you added the SIL post function?
Are there any errors in the log when perfroming the transition?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FYI,
Version info: Jira v6.0.3#6099-sha1:c205478
just installed JJupin v2.6.3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.