Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Hide subtask-create-button / Creation of subtask only by customized postfunction

Marc November 17, 2012

Hello jira-developers,
hello supporter and anyone,

Iam looking forward for the possibility to hide subtask-creation in GUI. I has write a customized postfunction for creating subtask. In postfunction some actions was automatic handled by script. The only lasted problem is, that user's can use the default subtask-creation-button under acton-menu to create subtask without my postfunction automatic actions.

Can anyone help me to hide the default subtask-create-buttons? (The view of subtask is still required and should remain unchanged!)


Have many thanks in advance.

Marc

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Jobin Kuruvilla [Adaptavist]
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.
November 17, 2012

Go to Administration > Plugins > Manage Plugins > System Plugins. Find "Issue operations plugin" and disable the "create-subtask" module.

Marc November 17, 2012

Thank you for your fastest answer!

That is one part of a solution.

But I think it is better to disable for a single project, and not global for all project from this jira-server. Is it possible to hide by customized plugin-module? Than I can query some things about the current issue and hiding the button when it is required.

Marc November 17, 2012

When I use the following description to denie the creation of subtask, is it possible to create subtasks by postfunction? (Is the postfunction capable of overwirte the status-permission?)

http://www.j-tricks.com/1/post/2011/02/permissions-based-on-workflow-status.html

(At the moment I think a plugin-solution will be more flexible for my problem.)

Jobin Kuruvilla [Adaptavist]
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.
November 18, 2012

I don't think you can hide it by a plugin. At the most, you can disable it by some Javascript. Another option might be to edit the budnled plugin to add your logic.

Marc November 18, 2012

I don't want change bundled plugin's or core-fetures from our jira.
Aproximate 30 Projects are effeceted and my change is only for one special project.

Do you have a initial-idea for a Javascript-Solution in a jira-plugin?

Jobin Kuruvilla [Adaptavist]
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.
November 19, 2012

Maybe something like:

<script type="text/javascript">
    AJS.$(document).ready(function () {
        var href = AJS.$("#project-name-val").text();
	if (href && href == 'My project Name'){
		AJS.$("#create-subtask").hide();
       }
    });
</script>

TAGS
AUG Leaders

Atlassian Community Events