I have a workflow and when the user selects a transition in the workflow it fires a Script workflow function to create a sub task it works however what I would like is either for it to open it so the user can enter information in it as a pop up or just open it so the user can enter the information.
Also can you create a subtask of a subtask? Example in my work flow they click next step it creates the sub task then you go into the sub task and if you select next step in the sub task it then creates another sub task?
I would like is either for it to open it so the user can enter information in it as a pop up or just open it so the user can enter the information.
As Nic and Phill pointed out above, you cannot. If you really really need something like this, a dirty workaround I can suggest is to create a Global Transition (or just a normal one if you wish) named something like "Create Sub Task" and put a Workflow Transition Screen that has the fields you need. You may opt to hide this fields or create a separate tab for it in the Parent issue (you may also delete this information afterwards so it will not clutter the parent issue). In this transition, create a post-function that can capture all these information and create a Sub-Task for you.
Also can you create a subtask of a subtask?
Nope. If you need a feature like this (on which Atlassian JIRA does not support and I strongly agree) maybe you need to revisit your requirement and do it in some other way.
Hi @[deleted] ,
I am working on the workaround you suggest above by putting custom fields on a transition screen. I'm trying to pull the values of the custom fields into the new subtask using Scriptrunner. I'm not a developer, so I'm not familiar with the details of the code.
Are you able to give an example or point me to where I can find code to grab those custom field values and put them into the new subtask?
Laurie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michelle,
The script engine runs in the server and does not readily communicate with the users browser making it more complex to have windows/pop-ups open. However, if the information is already captured in the main issue you could populate this directly in the sub-task.
Similarly you are restricted to a single level of sub-task but can link these together.
Phill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A post-function has no interface with the front end, so no, there's nothing to open it.
And, no, you can't do sub-tasks of sub-tasks. JIRA doesn't support it at all.
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.