Create sub-tasks on transition between workflow steps
| Name | Create Sub-Task on transition |
| Version | 1.2.1 |
| Author | Amit Khullar & Samuel John |
| Download | v1.2.1 for Jira 3.11 |
| Source | Source v1.2.1 |
Description and features
This post function let you create sub-task on a transition. You can either assign it to the parent issue's assignee or to the reporter. You may also choose which sub-task type it should be.
Please find the attached updated.jar file for 3.11 version which has the following functionality
1: Inherit Parent's priority to the Subtask
2: You can add Parents Summary + Key Id in the subtask Summary to relate the subtasks with Parent, eg. If I a do create an analyze sub task for my parent task i can put it as Analyze%.Key%.summary% so when the sub task is generated it will be Analyze -TEST-1201-This is a test main task.
Installation
- Download the zipped file. Unzip and place the jar file in the target directory in your webapp's lib folder
- Restart JIRA
- Add the post function to your workflow step(s)
Source code
Source code is available in the src\java directory. Please have fun and let me know if you find it useful.

Comments (109)
Dec 02, 2005
Norman Wayne Naccari says:
I did all of the above and tried it out. No sub-task was created. Do...I did all of the above and tried it out. No sub-task was created. Do I have to tailor the JAVA source in some way and rebuild the JAR.
Dec 05, 2005
Jonathan Nolen says:
If no one objects, I would like to move this plugin into the Plugin Library.If no one objects, I would like to move this plugin into the Plugin Library.
Jan 05, 2006
Brian Sensale says:
I've adapted this code for the latest Jira release, and am having a massive prob...I've adapted this code for the latest Jira release, and am having a massive problem. It appears that this plugin will not work on the Create Issue transition. I'm able to get a handle to the issue as an Issue, and create the new subtask from the fields, but when I try to call subTaskManager.createSubTaskIssueLink(), I'm having problems. Specifically, it appears that because I'm in the Create Issue transition, issue.getGenericValue() is returning null on the original issue, which means while I can create the SubTasks, I cannot create the SubTask link. Does anyone have any idea how I can go about doing this?
Apr 10, 2006
JitSiong Koh says:
Im not sure if this is relevant to you but you have to move the subtask-creation...Im not sure if this is relevant to you but you have to move the subtask-creation-Post function's position down after you added the function. simply bcos you have to create the issue before you add the sub tasks
Mar 07, 2006
. says:
The instructions must be missing a step somewhere, as I get the same result as N...The instructions must be missing a step somewhere, as I get the same result as Norman. The screen to add it to the workflow transition is there, but once the workflow is in place, it doesn't do anything. No sub-task creation.
Mar 13, 2006
Bernie Gu says:
Thanks for sharing this plugins. To make it workable in JIRA3.5.x, I did some m...Thanks for sharing this plugins.
To make it workable in JIRA3.5.x, I did some midifications.
In the CreateSubIssueFunction.java,
GenericValue issue = (GenericValue) transientVars.get("issue");
--> Issue subIssue = (Issue) transientVars.get("issue");
Also you need to add a IssueImpl into the fields. Add myIssue.setProject(subIssue.getProject());.....and so on.
The API document of SimpleWorkflowManager.java is not correct because the "fields" parameter createIssue method only need issue(projectId and other keys are not necessary).
Finally, it can work.
Mar 16, 2006
Shaimaa Elk says:
I followed all the instructions, but i do not see this plugin under Jira plugins...I followed all the instructions, but i do not see this plugin under Jira plugins when I go in Jira Adminstration. I also do not see the post function available. I'm using Jira 3.5, any idea abut what I need to do to get it to work
Jun 13, 2006
Ville Jyrkkä says:
I have tried this on Jira 3.6 but it won't appear under Jira plugins. Can some...I have tried this on Jira 3.6 but it won't appear under Jira plugins.
Can somebody help me?
Jul 30, 2006
Justin Koke says:
Hi, It actually appears under "Cliqr Plugins" (so it may not appear where you t...Hi,
It actually appears under "Cliqr Plugins" (so it may not appear where you think), this is because it was initially developed by Paul.
Regards,
Justin
Aug 01, 2006
Ville Jyrkkä says:
Do I need to do something to jar file? I followed the instructions and put the j...Do I need to do something to jar file?
I followed the instructions and put the jar file in the lib folder, restarted JIRA but it won't appear to plugins in Jira Administration.
This is first time I install plugin. What I might have done wrong?
Aug 15, 2006
Ville Jyrkkä says:
Hi, Will this plugin work in Jira 3.6? I added it, but no sub-tasks were create...Hi,
Will this plugin work in Jira 3.6? I added it, but no sub-tasks were created in the transition.
Do I need to do something to the plugin?
Is that 1.1 version of this plugin correct?
Aug 15, 2006
Ville Jyrkkä says:
I had post functions before the issue creation. Now it works! Thanx, great plugi...I had post functions before the issue creation. Now it works! Thanx, great plugin.
Sep 01, 2006
Justin Shapiro says:
Need ideas on two issues: 1. I want to prevent the function from creating a sub...Need ideas on two issues:
1. I want to prevent the function from creating a subtask if it already created one. My workflows can, on occasion, re-run a step and I don't want to create the subtask the second time through.
2. I need another idea for the "create loop" because I want subtasks to be able to spawn siblings.
Sep 04, 2006
Bhavin Turakhia says:
I followed the instructions for installation and configured a post function in m...I followed the instructions for installation and configured a post function in my workflow. but i get the following error in my log file -
Oct 05, 2006
Otto Chrons says:
A nice feature would be use information from the "parent" issue in the name of t...A nice feature would be use information from the "parent" issue in the name of the sub-task. For example use the "Summary" from parent issue as part of the name for the sub-task. Something like:
Sub-task Overview: $parent.summary - Accounting
When creating similar sub-tasks for different issues, this would automate the naming of them.
Oct 26, 2006
Peter Slade says:
This is a great plugin. I need to automatically create a sub-task and assign it ...This is a great plugin. I need to automatically create a sub-task and assign it to someone other than the options provided (Parent issue's reporter and Parent issues assignee). Is there any way to change the Sub-Task Assignee so that I can point it at a particular user?
Thanks!
Oct 12, 2007
mameha says:
I had the same problem and found a nice way to solve. In the parent issue workf...I had the same problem and found a nice way to solve.
In the parent issue workflow, when you change status from A to B, add a post function that changes the assignee of the parent issue. You may need a plugin for that, I cant remember. Then, create the subtask while the issue is assigned to UserX. Then, reassigne the parent back to original assignee (perhaps using components so you can choose 'automatic').
Dec 21, 2006
Bettina Zucker says:
Hello all, I'm trying to get this working with 3.7. I managed but I had to cha...Hello all,
I'm trying to get this working with 3.7.
I managed but I had to change the last function in the code by adding two parameters, the first one and the last one:
Of course the function call must be changed too:
And the attachmentManager must be added to the definitions:
Not to mention the imports:
import com.atlassian.jira.issue.AttachmentManager;With these small modifications the plugin compiled with the jira-development-kit-3.7-beta2 and was able to run with Jira 3.7 and actually to produce a subtask on a wf transition.
Cheers!
Bettina
Jan 11, 2007
Dharmendra Varma says:
Hello Bettina, Can you post the jar file so that I can use it with v3.7Hello Bettina,
Can you post the jar file so that I can use it with v3.7
Jan 18, 2007
Dharmendra Varma says:
Hello Bettina, Can you please provide teh .jar file as I am a user and do not k...Hello Bettina,
Can you please provide teh .jar file as I am a user and do not know how to compile .jar file.
Dharmendra
Jan 24, 2007
Bettina Zucker says:
Hello, since there were some requests, I attached my .jar with the update for 3...Hello,
since there were some requests, I attached my .jar with the update for 3.7.
I had to rebuild it but could not test it, so please test it yourself.
Cheers
Bettina
Jan 24, 2007
Bhavin Turakhia says:
there is an error with it. i get the follwing under my plugins section - Create...there is an error with it. i get the follwing under my plugins section -
Create sub-task on transition (createsubissue-function)
Creates a sub-task on transition between two workflow steps.
Error: There was a problem loading the descriptor for module 'workflow-function' in plugin 'Cliqr Plugins'. Could not load class: com.telenor.jira.plugin.workflow.createsubissue.CreateSubIssueFunctionPluginFactory
Jan 24, 2007
Bettina Zucker says:
Hello, I just uploaded the correction. Please let me know if it works now. Che...Hello,
I just uploaded the correction. Please let me know if it works now.
Cheers
Bettina
Jan 24, 2007
Bhavin Turakhia says:
this works thanks a millionthis works
thanks a million
Jan 30, 2007
Jean-Baptiste Catté says:
Hello Bettina, Could you upload the source code too?Hello Bettina,
Could you upload the source code too?
Feb 01, 2007
Dharmendra Varma says:
Hello Bettina, I tried this in v3.7.2, but no sub task gets created. This...Hello Bettina,
I tried this in v3.7.2, but no sub task gets created. This is where i created the post function. let me know if i am doing anything wrong.
Feb 13, 2007
Bettina Zucker says:
Hello, I described the changes i made to the source code in my posting on the 2...Hello,
I described the changes i made to the source code in my posting on the 21st of december 2006 above.
I think this is enough detail if you are working on the source.
For those who are not developing and just need the .jar, I uploaded mine to the attachments of this page.
I'm not going to upload my complete package as source code, because I have no intention to kidnap this package, neither to support it. Please ask the authors.
Cheers
Bettina
Mar 15, 2007
Linda Grisanti says:
This plugin, which was working wonderfully in v3.6.5 doesn't seem to work in v3....This plugin, which was working wonderfully in v3.6.5 doesn't seem to work in v3.8. Any assistance or comments are very much appreciated. Thanks.
Apr 26, 2007
Paul Rene Jørgensen says:
Just uploaded an updated version for Jira 3.8.Just uploaded an updated version for Jira 3.8.
May 08, 2007
Irina Zarkhina says:
Hi, Paul: I used this plagin a while ago, when I worked with Jira3.6, now I hav...Hi, Paul:
I used this plagin a while ago, when I worked with Jira3.6, now I have Jira 3.8, so I download your attachment to my C:\Program Files\JIRA-Enterprise-3.8.1\atlassian-jira\WEB-INF\lib dir, followed all your instructions and I don't see "Create subtasks on transition" among Postfunctions.
Any ideas?
Thanks, Irina
May 22, 2007
Paul Rene Jørgensen says:
Do you see any errors in your log file?Do you see any errors in your log file?
May 22, 2007
Irina Zarkhina says:
No, I don't see any Errors, I'm thinking of upgrading to 3.9, would it work? Th...No, I don't see any Errors, I'm thinking of upgrading to 3.9, would it work?
Thank you, Irina
May 23, 2007
nataliab says:
Hello! Thanks for the plugin for the version 3.8 ! I am trying to custo...Hello!
Thanks for the plugin for the version 3.8 ! I am trying to customise it ( assign to other than parent or reporter) and i would like to have the source code.
Is that possible? Could you attach it?
Thanks!
Jun 29, 2007
Roberto Cosenza says:
Yes, the source code for the 3.8 would be niceYes, the source code for the 3.8 would be nice
Jul 31, 2007
Jaskaran Singh says:
I have this excellent plugin working on 3.9.1; can i get the source code. Need t...I have this excellent plugin working on 3.9.1; can i get the source code. Need to modify it little to add the parent's summary in the subtaks created with some modification.
thanks
Aug 29, 2007
David Papish says:
Hi Jaskaran, i was wondering if u were able to get the source code for the lates...Hi Jaskaran, i was wondering if u were able to get the source code for the latest jar and if u were able to add the modification that u mention u need. Did it work for u fine? I need to add the same modification and was trying to get the source code and i don t se it attached anywhere. Thanks a lot.
Oct 12, 2007
mameha says:
Me too. I think this is a really important feature - can anyone upload the...Me too. I think this is a really important feature - can anyone upload their version or the developer add this function? =)
Aug 08, 2007
Andrey Mikulov says:
Some additions (check and bug fix) in version 1.2 for JIRA 3.8 and above require...Some additions (check and bug fix) in version 1.2 for JIRA 3.8 and above required:
- check for parent issue is subtask (or subtask with same workflow for detect recursive creating if multi level subtasks "hacked")
- very required add link to parent issue on creating like this: issueObject.setParentId(parentIssue.getId());
I modify code for 3.10 and add setParentId, because some my custom functions in create subtask workflow not working without parent Issue (copy some fields from parent Issue), but waiting "official" version with bug fix
Aug 30, 2007
Yancy Way says:
I'll second the check on parent issue, as a recursive loop will occur if this ac...I'll second the check on parent issue, as a recursive loop will occur if this action is added to the Create step of the workflow. I had created about 400 duplicate tickets before I realized I should kill the JIRA service.
This would also be a nice feature to have, as currently you cannot automatically create the Subtask without someone manually initiating a transition somewhere past Create.
Aug 13, 2007
Myron Tolosa says:
Hi... I'm tasked by my company to set up Jira... I'm no developer... and ...Hi...
I'm tasked by my company to set up Jira... I'm no developer... and new to Jira...
I was wondering if a similar plug-in exist... instead of creating a sub-task, it will create a separate issue on another project? and if this is possible with Jira...
appreciate your soonest reply....
thanks in advance...
Aug 20, 2007
Tim Graffam says:
Perhaps Im just not thinking "outside of the box" here, but how can one use this...Perhaps Im just not thinking "outside of the box" here, but how can one use this plug-in to ensure a sub-task is only automatically created just once per issue?
For example, I want a "Documentation" Sub-task to be automatically created when an issue is moved from "In Development" to "In QA". If a QA resource finds issues during the QA process, they would move it back to "In Dev". The problem is when a developer moves it back to QA again, another Doc Sub task will be created.
Thanks in advance!
Aug 29, 2007
David Papish says:
Was anyone able to obtain the source code for the latest plugin? If not, can som...Was anyone able to obtain the source code for the latest plugin? If not, can someone from the authors attach it?
thanks a lot.
Sep 19, 2007
Emily Stumpf says:
Does this plugin work with 3.10? Thanks.Does this plugin work with 3.10?
Thanks.
Oct 05, 2007
Andrejs Olins says:
We had some issues with mail sending due to changes in mail templates. I have a...We had some issues with mail sending due to changes in mail templates.
I have attached my compilation with source.
Classpath jars:
osworkflow-2.8.0.jar;
ofbcore-entity-2.1.1-atlassian-2007-05-07.jar;
commons-lang-2.1.jar;
velocity-1.4.jar;
propertyset-1.3.jar;
osuser-1.0-dev-log4j-1.4jdk-7Dec05.jar;
log4j-1.2.7.jar
jira-createsubtask-postfunction-plugin-jira310-with-source.jar
This one works with 3.10.2.
Nov 07, 2007
David J. Pedersen says:
nmnm
Oct 22, 2007
Yancy Way says:
Is anyone else seeing issues with Indexing? My Subtasks are being created ...Is anyone else seeing issues with Indexing? My Subtasks are being created fine, but are not being indexed (evident when searching) until some other action occurs on the subtask.
Dec 07, 2007
Joe Henson says:
Yes, I am seeing this problem. Running v1.2 of the JIRA 3.8 plugin on JIRA Ente...Yes, I am seeing this problem. Running v1.2 of the JIRA 3.8 plugin on JIRA Enterprise 3.11. The plugin works, except all sub-tasks created on transition do not get listed in JIRA filters,until ths sub-task is updated. A truly bad news situation when hundreds of sub-tasks are in this state; can't manage progress or get accurate statistics. Does anyone know of a workaround? Manually re-indexing JIRA to get this in sync is not a good solution.
Thanks.
Dec 12, 2007
Amit Khullar says:
The issue related to indexing has been fixed , pls see the new jar file.The issue related to indexing has been fixed , pls see the new jar file.
Dec 12, 2007
Joe Henson says:
Hi Amit, Thanks for this info! I will try the new plugin. Just one point,...Hi Amit,
Thanks for this info! I will try the new plugin. Just one point, I see the new jar is named:
create-subtask-on-transition-1.1.jar
This plugin already provides:
create-subtask-on-transition-1.1.jar and create-subtask-on-transition-1.2.jar
Shouldn't this new jar be named something else and was it based on v1.2 source?
Thanks.
Dec 14, 2007
Amit Khullar says:
Joe you are correct, this was based on 1.2 source and I have renamed it to creat...Joe you are correct, this was based on 1.2 source and I have renamed it to create-subtask-on-transition-1.2.1.jar
Thanks
Dec 19, 2007
Joe Henson says:
Amit, Thanks for clearing that up. I tried the v1.2.1 on JIRA Enterprise 3.11 ...Amit,
Thanks for clearing that up.
I tried the v1.2.1 on JIRA Enterprise 3.11 and get "Error: Illegal Operation." Also seeing "Form Errors: Null" message.
ERROR [atlassian.jira.workflow.SimpleWorkflowManager] An exception occurred
java.lang.NumberFormatException: null
See the attached files: "Exception for v1.2.1 CreateSubtaskOnTrans.txt" and "WorkflowStep for v1.2.1 Create Sub-taskOnTrans.txt"
This happens for most Workflow Actions, but not all.
Dec 20, 2007
Amit Khullar says:
Can u check that the required fields which are being used in the Transition have...Can u check that the required fields which are being used in the Transition have proper format (integers) or are not going null , coz the error which it gives is java.lang.NumberFormatException: null. Plz verify this.
For me it is workiing in all the Workflow actions, also check if this is not colliding with some other plugin action in Post Functions.
May 20, 2008
Kim Peppers says:
Hi Joe, I'm seeing the same error on 3.10 as well as 3.12. Did you ...Hi Joe,
I'm seeing the same error on 3.10 as well as 3.12. Did you find a solution to this? Any help is much appreciated.
Thanks,
Kim
Dec 13, 2007
Alexander Johannes says:
Amit: is it possible for you, that you also provide the source for your modified...Amit: is it possible for you, that you also provide the source for your modified plugin? I'd like to modify it further..
TIA, Alex
Dec 14, 2007
Amit Khullar says:
Alex what is your requirement?Alex what is your requirement?
Dec 14, 2007
Alexander Johannes says:
I'm currently developing a very similar plugin to create several Issues an a tra...I'm currently developing a very similar plugin to create several Issues an a transition an link them back to the original issue (something like feature request -> specification, implementation, test, documentation). I was curious, how you have resolved the indexing-problem.
Maybe you can also update the content of this page and point to your fixed plugin, because the download-link still points to the first 2 versions of this plugin, which are, judging the comments, aparrently broken and outdated.
Nov 12, 2007
Tom Miller says:
Has anyone solved the recreating of subtasks issue? Does this work on 3.11...Has anyone solved the recreating of subtasks issue? Does this work on 3.11? Thanks!
Nov 29, 2007
Steve Ilg says:
I have found a workaround for recreating subtaks. Create a new Workflow, basica...I have found a workaround for recreating subtaks.
Create a new Workflow, basically a copy of your main workflow.
In the new workflow remove the POST functions that crate sub tasks.
In your work flow scheme add the new work flow for each of your Issue Types that are sub tasks.
Now once the sub task is created it uses the new workflow with transitions that can not create sub tasks.
This solves the problem of the sub tasks creating more sub tasks.
If you want the main issue to not create any more sub tasks you can do the following:
Set a condition on the transition. In my case I am using All sub-tasks must have one of the following statuses to allow parent issue transitions: and I set the status to one that my sub tasks can never be in. If there are no sub tasks the transition is OK. Once there are sub tasks they will never be in the status set in the condition so the Tranistion will not be displayed.
Dec 06, 2007
Amit Khullar says:
All, Please find the attached updated.jar file for 3.1...All,
Please find the attached updated.jar file for 3.11 version which has the following functionality
1: Inherit Parent's priority to the Subtask
2: You can add Parents Summary + Key Id in the subtask Summary to relate the subtasks with Parent, eg. If I a do create an analyze sub task for my parent task i can put it as Analyze%.Key%.summary% so when the sub task is generated it will be Analyze -TEST-1201-This is a test main task.
I would give credit to Samuel John who made the customization.
May 05, 2008
Eric Levin says:
Amit / Samuel (or anyone else) - Can you give me some guidance here? ...Amit / Samuel (or anyone else) -
Can you give me some guidance here? I am not able to get the Parent Summary to be part of the sub-task Summary. What is the exact syntax to get this to work?
Your assistance is greatly appreciated!
May 05, 2008
Eric Levin says:
Here is another request for this plugin. Is it possible to copy the Descri...Here is another request for this plugin. Is it possible to copy the Description from the parent and make it the description of the child? If you need a use case for this - let me know. I have a few!
Dec 19, 2007
Simon Janssens says:
Hi, I'm trying to get this plugin up and running (Enterprise Edition, Version: ...Hi,
I'm trying to get this plugin up and running (Enterprise Edition, Version: 3.11-#288) and after copying it to the lib directory and restarting JIRA it is not available under plugins in the admin.
Also, there wasn't anything in the logs
Any ideas? Thanks in advance.
Dec 20, 2007
Amit Khullar says:
You can find it in Metro Plugins.You can find it in Metro Plugins.
Dec 20, 2007
Simon Janssens says:
Hi Amit, Metro Plugins doesn't show up in my list of installed plugins I assu...Hi Amit,
Metro Plugins doesn't show up in my list of installed plugins
I assume Metro plugins will be an item in the list (like workflow plugin and web resource plugin)?
Cheers.
Dec 21, 2007
Amit Khullar says:
Yes it shud be there in the Plugins page...Yes it shud be there in the Plugins page...
Jan 10, 2008
Halil Demirezen says:
I am getting such an error in jira. 2008-01-10 14:09:58,649 main ERROR [atlass...I am getting such an error in jira.
2008-01-10 14:09:58,649 main ERROR [atlassian.plugin.parsers.XmlDescriptorParser] There were problems loading the module 'workflow-function'. The module and its plugin have been disabled.
2008-01-10 14:09:58,654 main ERROR [atlassian.plugin.parsers.XmlDescriptorParser] There was a problem loading the descriptor for module 'workflow-function' in plugin 'Metro Plugins'.
Error retrieving dependency of class: com.telenor.jira.plugin.workflow.email.SendMailFunctionPluginFactory. Missing class: com/atlassian/jira/plugin/workflow/WorkflowPluginFunctionFactory
com.atlassian.plugin.PluginParseException: Error retrieving dependency of class: com.telenor.jira.plugin.workflow.email.SendMailFunctionPluginFactory. Missing class: com/atlassian/jira/plugin/workflow/WorkflowPluginFunctionFactory
at com.atlassian.plugin.descriptors.AbstractModuleDescriptor.init(AbstractModuleDescriptor.java:69)
at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.init(JiraResourcedModuleDescriptor.java:45)
at com.atlassian.jira.plugin.workflow.AbstractWorkflowModuleDescriptor.init(AbstractWorkflowModuleDescriptor.java:29)
at com.atlassian.jira.plugin.workflow.WorkflowFunctionModuleDescriptor.init(WorkflowFunctionModuleDescriptor.java:34)
at com.atlassian.plugin.parsers.XmlDescriptorParser.createModuleDescriptor(XmlDescriptorParser.java:147)
at com.atlassian.plugin.parsers.XmlDescriptorParser.configurePlugin(XmlDescriptorParser.java:85)
at com.atlassian.plugin.loaders.SinglePluginLoader.loadPlugin(SinglePluginLoader.java:86)
at com.atlassian.plugin.loaders.SinglePluginLoader.loadAllPlugins(SinglePluginLoader.java:50)
at com.atlassian.plugin.loaders.ClassPathPluginLoader.loadClassPathPlugins(ClassPathPluginLoader.java:50)
at com.atlassian.plugin.loaders.ClassPathPluginLoader.loadAllPlugins(ClassPathPluginLoader.java:63)
at com.atlassian.plugin.DefaultPluginManager.init(DefaultPluginManager.java:70)
at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:28)
at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:356)
at com.atlassian.jira.ComponentManager.start(ComponentManager.java:334)
at com.atlassian.jira.upgrade.ConsistencyLauncher.contextInitialized(ConsistencyLauncher.java:31)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2008-01-10 14:09:58,661 main ERROR [atlassian.plugin.parsers.XmlDescriptorParser] There were errors loading the plugin 'Metro Plugins'. The plugin has been disabled.
2008-01-10 14:10:05,429 main ERROR [jira.issue.managers.DefaultCustomFieldManager] Could not find any custom field value with key 'com.atlassian.jira.ext.charting:firstresponsedate'.
2008-01-10 14:10:05,430 main ERROR [jira.issue.managers.DefaultCustomFieldManager] Could not find any custom field value with key 'com.atlassian.jira.ext.charting:resolutiondate'.
2008-01-10 14:10:05,430 main ERROR [jira.issue.managers.DefaultCustomFieldManager] Could not find any custom field value with key 'com.atlassian.jira.ext.charting:timeinstatus'.
2008-01-10 14:10:05,446 main ERROR [jira.issue.managers.DefaultCustomFieldManager] Could not find any custom field value with key 'com.atlassian.jira.plugin.labels:labels'.
2008-01-10 14:10:05,524 main ERROR [jira.issue.managers.DefaultCustomFieldManager] Could not find any custom field value with key 'com.atlassian.jira.toolkit:resolveddate'.
2008-01-10 14:10:06,794 main INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Starting JIRA Enterprise Edition, Version: 3.11-#288
2008-01-10 14:10:06,794 main INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: mysql
2008-01-10 14:10:06,955 main INFO [atlassian.jira.upgrade.ConsistencyCheckImpl]
Jan 15, 2008
Sebastian Błoch says:
Hi Could you upload the source code of version 1.2.1?Hi
Could you upload the source code of version 1.2.1?
Jan 15, 2008
Amit Khullar says:
Source attached for ver 1.2.1Source attached for ver 1.2.1
Feb 05, 2008
Igor V Demin says:
There is a necessity to use this useful plugin on initial transition "...There is a necessity to use this useful plugin on initial transition "Create Issue". But it would be strange to use "Create Sub-task" postfunction
before "Creates the issue originally.", If we move down "Create Sub-task" postfunction. It without exception will be create sub-tasks till the StackOverflowException
will be thrown by in-memory hsql db (for my PC quantity of created sub-tasks is about 500+). With other not initial transition the plugin work fine.
For now I work with Jira 3.12.1, but with Jira 3.9.1 have the same problem.
I need your advice on question "How I can fix it?" or it would be great if you fix it yourself. Thanks.
Feb 15, 2008
René Spengler says:
Can I use i18n properties within the field.subIssueOverview and field.subIssueDe...Can I use i18n properties within the field.subIssueOverview and field.subIssueDescription?
Feb 19, 2008
Dalibor Damborsky says:
I am using 3.12.1.#299 and after trying to create sub-task with this plugin, is ...I am using 3.12.1.#299 and after trying to create sub-task with this plugin, is there the following error here
ERROR
It seems that you have tried to perform an illegal workflow operation.
If you think this message is wrong, please consult your administrators about getting the necessary permissions.
Form Errors:
Any advice, thanks
Dalibor (I have administrator rights)
Mar 13, 2008
Dwight Thompson says:
I am on the same version and am seeing the same problem. I also have administrat...I am on the same version and am seeing the same problem. I also have administrator rights.
May 19, 2008
Kim Peppers says:
I am using 3.12.3#302 and I'm seeing this error also. Did anyone find a so...I am using 3.12.3#302 and I'm seeing this error also. Did anyone find a solution or workaround? Any help is much appreciated.
Thanks,
Kim
Jul 01, 2008
Patricia Montag says:
did you find a solution for this problem? i´ve the same issue on 3.12.1did you find a solution for this problem? i´ve the same issue on 3.12.1
Mar 07, 2008
Eric Levin says:
This plug-in is terrific. It has saved me a LOT of time. One issue, ...This plug-in is terrific. It has saved me a LOT of time. One issue, though:
When I create an issue directly in JIRA my subtasks are created flawlessly.
When I create an issue via eMail (using the pop listener) - the parent issue is created but the subs are not.
Anyone else see this behavior?
Mar 10, 2008
Eric Levin says:
I figured it out. Silly me. It was a permissions issue. The l...I figured it out. Silly me.
It was a permissions issue. The logs showed "null user does not have permissions...". Once I adjusted the permissions scheme all was well.
Apr 08, 2008
Rene Duquesnoy says:
Does v1.2.1 work with JIRA 3.12.2?Does v1.2.1 work with JIRA 3.12.2?
Apr 08, 2008
Royce Wong says:
I tried with 3.12 and it worked.I tried with 3.12 and it worked.
May 26, 2008
Hartje Bruns says:
Hi, to get the "Send Notification Mail"-Plugin working i had to change th...Hi,
to get the "Send Notification Mail"-Plugin working i had to change the file atlassian-plugin.xml in the jar. I had to change these to lines
<resource type="velocity" name="view" location="sendmail-function-view.vm"/>
<resource type="velocity" name="input-parameters" location="sendmail-function-input-params.vm"/>
to
<resource type="velocity" name="view" location="templates/sendmail-function-view.vm"/>
<resource type="velocity" name="input-parameters" location="templates/sendmail-function-input-params.vm"/>
Regards
Hartje
Jun 25, 2008
Bill Greene says:
I see several people mentioned errors with version 1.2.1 of the plugin, and...I see several people mentioned errors with version 1.2.1 of the plugin, and I think I've figured out why:
I was previously using version 1.2 of the plugin, which did not allow the priority of the sub-task to be configured. But version 1.2.1 of the plugin does, so if you have workflows which used 1.2 and upgrade to 1.2.1, the error occurs when you make the transition because it can't find the priority which is configured when the subtask is created or edited. I was able to just edit the subtask in my workflow and it seemed to fix the problem. You could also modify the XML of the workflow directly to add the "<arg name="field.subIssuePriorityId">0arg> " line.
I ended up just reverting to version 1.2 so I wouldn't have to change a bunch of workflows, and 1.2 seems to work with JIRA 3.12.3.
Here is the XML from my workflow which used 1.2 of this plugin:
<function type="class">
<arg name="field.subIssueAssignTo">1arg>
<arg name="class.name">com.telenor.jira.plugin.workflow.createsubissue.CreateSubIssueFunctionarg>
<arg name="field.subIssueOverview">Create Errata Reportarg>
<arg name="field.subIssueTypeId">9arg>
<arg name="field.subIssueDescription">If the issue is customer-visible, update the Errata Report document to describe the customer-visible impact of the issue. arg>
function>
And here is the XML from my workflow after I simply edited the plugin configuration and saved the changes:
<function type="class"> <arg name="field.subIssueAssignTo">1arg>
<arg name="class.name">com.telenor.jira.plugin.workflow.createsubissue.CreateSubIssueFunctionarg>
<arg name="field.subIssueOverview">Create Errata Reportarg>
<arg name="field.subIssuePriorityId">0arg>
<arg name="field.subIssueTypeId">9arg>
<arg name="field.subIssueDescription">If the issue is customer-visible, update the Errata Report document to describe the customer-visible impact of the issue. arg>
function>
Jun 25, 2008
Amit Khullar says:
The other way out for this can be a db update where you update all the subtasks ...The other way out for this can be a db update where you update all the subtasks Priority field with that of the parent. A simple query would do that for you to update all the existing records.
Amit
Jun 30, 2008
Bill Greene says:
Thanks for the suggestion, but I don't think that will work since the problem is...Thanks for the suggestion, but I don't think that will work since the problem isn't with existing sub-tasks. The problem is when plugin version 1.2.1 tries to execute on a transition and references the parameter for priority which wasn't set when the plugin 1.2 was configured in the workflow. Basically 1.2.1 is not backward-compatible with workflows that were configured with 1.2.
Jun 26, 2008
Daniel Dekok says:
Is there a xml based way of forcing the sub-task to be assigned to a specifc use...Is there a xml based way of forcing the sub-task to be assigned to a specifc user instead of parent reporter or assignee? Had a look the code but its a bit beyond me. Would be nice if a transition could a bunch of sub tasks for specific users.
Which i then could use to block the next transition unless they are all closed (as a multiple review type situation)
Jun 30, 2008
Eric Levin says:
When creating sub-tasks they are created by the "null" user. The reporter ...When creating sub-tasks they are created by the "null" user. The reporter for the sub-tasks appear correctly once the tickets are created however my transition does not work unless anyone can create tickets in the project.
Does anyone have a way around this?
Jul 01, 2008
Patricia Montag says:
i get the following error during performing the transition, where the create-sub...i get the following error during performing the transition, where the create-subtask on transition post-function is implemented:
ERROR
It seems that you have tried to perform an illegal workflow operation.
If you think this message is wrong, please consult your administrators about getting the necessary permissions.
Form Errors:
Logfile output:
2008-07-01 21:46:44,569 TP-Processor16 ERROR [atlassian.jira.workflow.SimpleWorkflowManager] An exception occurred
java.lang.NullPointerException
at com.atlassian.jira.workflow.SimpleWorkflowManager.createIssue(SimpleWorkflowManager.java:165)
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:365)
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:313)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:71)
at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)
at $Proxy21.createIssue(Unknown Source)
Any idea what is wrong?
Jul 04, 2008
Wish J says:
Great Plugin Amit and Sam.. I will definately use it and share my comment...Great Plugin Amit and Sam..
I will definately use it and share my comments
Jul 21, 2008
David Williams says:
Has anyone tried to compile the source code lately.? I downloaded it from ...Has anyone tried to compile the source code lately.? I downloaded it from the link above and grabbed all the jars listed in the .classpath file except the kk.jar which I couldn't find. Still Eclipse can't resolve numerous imports etc... I'm new on the plugin development side so I may be missing something. Thanks for your help!!!
Jul 22, 2008
Samuel John says:
kk.jar contains all the jira class files in WEB-INF\classes which can be created...kk.jar contains all the jira class files in WEB-INF\classes which can be created manualy :
C:\atlassian-jira-enterprise-3.11_war\atlassian-jira-enterprise-3.11\webapp\WEB-INF\classes>jar -cvf kk.jar com\
this when imported to the class path would most probably resolve the imports
Alternatively you can use 'maven jar' and 'maven eclipse' commands to resolve the imports
Jul 22, 2008
Wish J says:
Amit/Sam, 1. How any Sub-Task can be added.! Is their any limit to it.? 2....Amit/Sam,
1. How any Sub-Task can be added.! Is their any limit to it.?
2. In my JiRA I have disabled issues to be unassigneed. But using this plugin Sub-task can be left Unassignee. This should not be the case.
Jul 29, 2008
Amit Khullar says:
Hi Wish, 1: ...Hi Wish,
1: You can add any numbers of Sub Tasks , no limit attached.
2: This is a customization that may be required for a particular type of sub task , this is independent of the Jira's internal unassigned task feature. So when u create a workflow post function you can always choose the person whom u want the issues to be assigned.That way the tasks will never be unassigned.
Hope it helps.
Amit
Jul 28, 2008
Wish J says:
Getting following error after clicking on the Transaction link of the issue.:&nb...Getting following error after clicking on the Transaction link of the issue.: (Note I am trying this on JiRA 3.12.3 );

Jul 29, 2008
Wish J says:
Got the reason : While upgrading the JiRA, we forget to put the JAR file on the...Got the reason :
While upgrading the JiRA, we forget to put the JAR file on the NEW server. ..
Sep 04, 2008
Brandt says:
I get an exception when I click on the Add button under the 'send email notifica...I get an exception when I click on the Add button under the 'send email notification' post function.
I am running Jira 3.12.1
and
create-subtask-on-transition-1.2.1.jar
(I already tried that thing above with changing the location in the xml file)
java.lang.IllegalArgumentException: Cannot find expected argument 'groupEmails' in parameters.
at com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory.extractSingleParam(AbstractWorkflowPluginFactory.java:116)
at com.telenor.jira.plugin.workflow.email.SendMailFunctionPluginFactory.getDescriptorParams(SendMailFunctionPluginFactory.java:42)
at com.atlassian.jira.web.action.admin.workflow.AddWorkflowTransitionFunctionParams.addWorkflowDescriptor(AddWorkflowTransitionFunctionParams.java:64)
at com.atlassian.jira.web.action.admin.workflow.AbstractAddWorkflowTransitionDescriptorParams.doExecute(AbstractAddWorkflowTransitionDescriptorParams.java:67)
at webwork.action.ActionSupport.execute(ActionSupport.java:153)
etc......
Edit: Solved!! I had two create subtask jar files with the same filename, but they were downloaded at different times and had different file sizes. I copied over the smaller/older one with the newer one, and this post function now works.
Aug 28, 2008
Michael Hartkopf says:
At first: Thanks for this plugin! As I've seen there some comments regardin...At first: Thanks for this plugin!
As I've seen there some comments regarding the request of issue creation instead of sub-tasks. Because I need such a functionality too, I asked Atlassian support. The answer was: Not available, create your own plugin.
Becasue there's no knowledge about JIRA plugin development on my side, I wanted to ask if it is possible to get support from you or if someone already has developed a customized version based on this plugin.
Michael
Sep 08, 2008
Brandt says:
The send email notification post function does not seem to deal with issues or s...The send email notification post function does not seem to deal with issues or sub-tasks that are unassigned.
2008-09-08 11:43:27,635 TP-Processor1 ERROR [web.action.issue.CreateSubTaskIssueDetails] com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.WorkflowException: Failed to send email: root cause: No user null found
com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.WorkflowException: Failed to send email: root cause: No user null found
It automatically wants to send it to these people:
A notification email will be sent to the Issue Assignee, the Issue Reporter, the "foobar" group members
I only want it to go to the group, becuase the "Issue Assignee" is unassigned causing this error.
Sep 30, 2008
Beth DePape says:
Thanks for this plug-in, I use it a lot. One problem I am having is that the su...Thanks for this plug-in, I use it a lot.
One problem I am having is that the sub-task is created without a security level assigned. Even if I set security level as a required field for the sub-task issue type, the post-function is able to create sub-tasks with no security level assigned. Ideally, the sub-tasks would inherit the parent issue security level. Is that possible?
Oct 01, 2008
Amit Khullar says:
This functionality is not implemented in this plugin. If you want you can add th...This functionality is not implemented in this plugin. If you want you can add the same and update the code and please check in the new code + comments etc here.
Thanks
Amit
Oct 02, 2008
Beth DePape says:
Unfortunately, I do not know where to start with that. I am not a develope...Unfortunately, I do not know where to start with that. I am not a developer.
Oct 08, 2008
Joan Manel López says:
Helllo, is posible to add custom fields in the create/edit templates (createsubi...Helllo, is posible to add custom fields in the create/edit templates (createsubissue-function-edit-params.vm and createsubissue-function-input-params.vm)when I had the sub-tasks?
Thx
Oct 27, 2008
Russ Young says:
This plug in is helpful. 1. How do I make it so that the sub task inherit...This plug in is helpful.
1. How do I make it so that the sub task inherits the parent name + some text?
2. How do I make it so that I can specify the fix in version for the sub-task?
Ultimately I wish that sub tasks were automatically created when an issue needed to be fixed in multiple versions. So I am creating a transition called "Merge bug fix to 3.1 release" and one called "Merge bug fix to 3.2 release", etc and then the project manager can click on the workflow step to create these automatically. This makes it easier than creating all the sub tasks manually. If I can assign the fix in version field automatically in this post function then this seems like a workable work around.
Thanks for your help!
Nov 28, 2008
Aki Hänninen says:
Hi, could you please provide a plugin compiled for the JVM 1.4? The plugin repo...Hi,
could you please provide a plugin compiled for the JVM 1.4? The plugin reports the following error:
Error:There was a problem loading the descriptor for module 'workflow-function' in plugin 'Metro Plugins'. Class version is incompatible with current JVM: com.telenor.jira.plugin.workflow.email.SendMailFunctionPluginFactory
Thanks for the great plugin,
Aki
Feb 26
Nancy Belser says:
Will this plugin work for Jira 3.13?Will this plugin work for Jira 3.13?
Mar 02
Nancy Belser says:
I am testing the plugin in v3.13. I am encountering an error. I have...I am testing the plugin in v3.13. I am encountering an error. I have the workflow set up to assign the issue to the parent issue's assignee, but instead it keeps assigning it to the lead developer. I checked the log and the here is what it says:
2009-03-02 13:16:48,629 http-8080-Processor25 WARN [workflow.function.issue.AssignToLeadFunction] Automatically setting assignee to lead developer.
It seems as if there is a problem to me. Is this because the plugin doesn;t work with 3.13?
Apr 27
Steve Kipping says:
Great plugin, very useful, however I'd like to try and modify it to copy the fol...Great plugin, very useful, however I'd like to try and modify it to copy the following fields from the parent
Being a complete novice with Java, I've got an idea of the source code, and think this should be a fairly trivial change; however I'm not 100% confident on what I should be changing. Iif someone could give some pointers on what parts of the code I need to modify to do this I'd be very grateful.
May 13
Steve Kipping says:
I managed to get this working with my extra fields, but I have a problem with cu...I managed to get this working with my extra fields, but I have a problem with custom fields on importing from CSV. I posted a question on the developer forum (Not sure if this is the correct place). http://forums.atlassian.com/thread.jspa?threadID=34048
Here's what I added
issueObject.setFixVersions(parentIssue.getFixVersions());
issueObject.setAffectedVersions(parentIssue.getAffectedVersions());
and this to import a custom field
customFieldName = "MyCustomFieldName";
CustomField customField = customFieldManager.getCustomFieldObjectByName(customFieldName);
issueObject.setCustomFieldValue(customFieldManager.getCustomFieldObjectByName(customFieldName),parentIssue.getCustomFieldValue(customField));
May 26
Steve Kipping says:
I changed the customfield section of code as I read somewhere that the setCustom...I changed the customfield section of code as I read somewhere that the setCustomFieldValue doesn't write the value to the database, whereas the following will.
customFieldName = "MyCustomFieldName";
CustomField customField = customFieldManager.getCustomFieldObjectByName(customFieldName);
ModifiedValue modifiedValue = new ModifiedValue(issueObject.getCustomFieldValue(customField), parentIssue.getCustomFieldValue(customField));
customField.updateValue(null, issueObject, modifiedValue, new DefaultIssueChangeHolder());
Still doesn't help with my import csv issue.
Edit: I check the function again and this code doesn't work, so I reverted to my original version. Odd.
May 12
Jonas Anso says:
I am using it within JIRA 3.13 and it works fine.I am using it within JIRA 3.13 and it works fine.
May 19
Jeff Mraz says:
I am testing out JIRA 3.13.2 and after I installed the 'create-subtask-on-...I am testing out JIRA 3.13.2 and after I installed the 'create-subtask-on-transition-1.2.1.jar' file I went into the Admin Current Plugins screen and found this error under the Metro Plugins:
Metro Plugins
Description: Plugins for supporting the Metro roadmap process
Vendor: [Paul Rene Jørgensen
JIRA Version: 3.0
Send Notification Mail (sendmail-function)
Sends a notification email.
Error: There was a problem loading the descriptor for module 'workflow-function' in plugin 'Metro Plugins'. Error retrieving dependency of class: com.telenor.jira.plugin.workflow.email.SendMailFunctionPluginFactory. Missing class: com/atlassian/jira/plugin/workflow/WorkflowPluginFunctionFactory
What did I do wrong, or what do I need to do to fix this?
May 20
Steve Kipping says:
I'm using 3.13.2 and it works fine for me. Looks like something's wrong with the...I'm using 3.13.2 and it works fine for me. Looks like something's wrong with the Workflow plugin (I'm guessing a little bit here as I'm a JIRA newbie).
Have you got the Workflow plugin listed in the Current Plugins page (There should be 20 modules for it)?