Is there any way to create sub-task only for some issue type.

Hi

Now there are 4 issue types as follow.

A、B、C(sub-task)、D(sub-task).

Only C sub-task can be created for A issue type, and only D sub-task can be created for B issue type.

Is there a way to sovle my question, such as javascripte code,validator and so on.

thanks.

3 answers

Hi Wu,

through use of web-items , you can achieve this feature objective.

By web-item , you can have button to create specific subtask for the issuetype (create issue action).

And again, you can try to hide the "create subtask" under actions through javascript.

@Wu,

Did my solution helped you , if yes please accept the answer.

But if you found a better solution , then please share with me :)

Thanks for your solution.But I can not understand well.

Could you give me more information.

Waiting for your response.

@Wu,

Did my solution helped you , if yes please accept the answer.

But if you found a better solution , then please share with me :)

I think that you can use the JIRA Behaviours plugin to achieve that as it allows adding custom validation (both client side and server side) when creating an issue. So you can implement validator that checks if the selected subtask is valid for the issue type that is being used as sub-task parent. I can't give a sample code as I'm not very familliar with the Behaviours plugin but if you take a look here - https://jamieechlin.atlassian.net/wiki/display/JBHV/JIRA+Behaviours+Plugin it should be easy to implement such logic

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

122 views 6 8
View post

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