Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Wu Yanfeng July 14, 2013

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

0 votes
Boris Georgiev [Appfire]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2013

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

0 votes
Dipti Ranjan Behera
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2013

@Wu,

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

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

0 votes
Dipti Ranjan Behera
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 14, 2013

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.

Dipti Ranjan Behera
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2013

@Wu,

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

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

Wu Yanfeng July 16, 2013

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

Could you give me more information.

Waiting for your response.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events