Post funtion to create subtask then open subtask

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?

3 answers

0 votes

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.

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

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

422 views 7 5
Join discussion

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