Can I block creating sub-tasks under the epic?

Hi Everyone

I would like block creating sub-tasks under the epic (More -> Create sub-task) but keep this functionality in stories/tasks. Is such configuration possible?

1 answer

1 accepted

0 vote
Tarun Sapra Community Champion Nov 27, 2017

Pretty old question

Not supported out of box - https://jira.atlassian.com/browse/JRASERVER-7990

Using script runner plugin you can put an condition in the "validation" phase of the create transition

https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-Restrict-Creation-of-Subtask-based-on-IssueType-in-JIRA/qaq-p/525797

Tarun Sapra Community Champion Nov 27, 2017

Also possible via some JS hacks to hide the "create sub-task" button, though I avoid writing JS.

Script runner seems to be acceptible since I want to use it for other purpose anyway but I guess that this will work post factum. So "Create sub-task" will be in "More" menu but after clicking it script will block it?

Is this JS hack possible within the Jira?

Tarun Sapra Community Champion Nov 28, 2017

Using script runner plugin, the script will be part of "validate" phase of the "create" transition thus, validation will execute after pressing the "create" button.

If you want a client side solution (though JS solutions arent always the cleanest) you can look into "behaviour module" of the scriptrunner plugin

https://scriptrunner.adaptavist.com/4.3.1/jira/behaviours-overview.html

Please accept/upvote answer if it works for you. Thanks.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

11,959 views 15 13
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