It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
TAGS
Community showcase
Published in Next-gen

Keyboard shortcuts have arrived for next-gen projects!

...ollected feedback from users around the lack of shortcuts, and we’re here to address that: In next-gen projects, I miss the keyboard shortcuts badly. This is particularly true on the Board, but also i...

278 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you