• Community
  • Products
  • Marketplace Apps
  • Questions
  • If we have a subtask in JIRA can we impose a restriction that the subtask cannot be created independently - creation of tasks and then subtasks usese structure plugin

If we have a subtask in JIRA can we impose a restriction that the subtask cannot be created independently - creation of tasks and then subtasks usese structure plugin

There is a task which in turn can have multiple subtasks. But the subtasks cannot be created independently. For a subtask to be created the User has to first create a task or select an already defined task and then associate the subtask to it. This means subtask cannot be created independently.

2 answers

1 accepted

This widget could not be displayed.

It seems that you need an enforcement in a structure - to make sure SBI are always created under a PBI. Structure plugin does not have this functionality yet, but this is a good feature request. I have posted it to our JIRA: https://jira.almworks.com/browse/HJ-978 - feel free to vote/watch/comment.

There's also a related feature request here: http://structure.uservoice.com/suggestions/514887

You have got it right, that's exactly what i was trying to explain. But otherwise can u suggest any idea to fix this issue because we wanted this feature at the earliest :(

At the moment, there's no way to enforce it because to add an issue to a structure at all, it has to be created first.

If you got time and resources to tap into Structure API, you can write your own mini-plugin or a remote script that would do JIRA search for SBIs, then fetch hierarchy from Structure API and locate SBIs that are not under PBIs. Then the script would notify an admin about the violations.

More on Structure API: https://wiki.almworks.com/x/oYF7

-- Igor

Thank you Igor. Adding to that would like to know if we can use any jira search plugin?Since we are not into development of plugin as of now but if its feasible then we would like to try out with the existing search plugin if any and then customize based on our needs.

Unfortunately, I don't know of any search plugins that let you do that. We have a feature request that might address this issue with searching, when it's ready: https://jira.almworks.com/browse/HJ-802

If you are planning to implement the above feature https://jira.almworks.com/browse/HJ-978 , just out of curiosity can you please let me know when will you be planning to release it

We cannot promise any dates, sorry. I don't think this feature will be released very soon, but we'll definitely keep it in mind when we work on more support for constraints.

This widget could not be displayed.

There is no question here.

By definition, in Jira, a sub-task lives below an issue. In the structure plugin, you can have more than one layer of subtasks.

That's about it - could you explain what you're actually asking?

Yes Nic what you are saying is true. But we have a requirement in our project where in we have a change request(you can call it as task) which in turn contains PBI(u can say subtask). This PBI inturn can have many SBIs(subtask again). But say if a user is trying to create an SBI possibly it could be denoted as SBI1 then we need to somehow customize jira for not allowing such type of creations. User could be accidentally trying to create this. It is just by looking at the tag "SBI" we come to a conclusion that this is subtask created without a valid parent. Creation of such subtasks should not be allowed. It can be allowed if and only if it has a parent.

I hope i clarified the requirement to some extent

I'm afraid I'm completely lost now, sorry (and there's still not exactly a question here)

You can not create a sub-task without a parent in Jira.

I'm not sure about the structure plugin, but I don't think you can do it there either, unless you are mixing up sub-task types somewhere.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

93 views 0 8
Read article

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