Hide "Create Sub-Task" button from Issue screen

Noah Miles
Contributor
November 2, 2022

I've read quite a few posts on this, and none of them directly answer my question.  So I'm hoping someone has a good solution here...

I have a project where I'm using workflow and automation rules to create sub-tasks.  We're capturing approvals through these, and it is a highly regulated process.  The automation and workflow to create the sub-tasks and adhere to the process work beautifully!  The workflow transitions that set the fields used by automation rules to create the sub-tasks can be executed by users in the proper role.  And then we're using the automation account to create the sub-tasks with rules.

However, the option manually "Create Sub-Task" is still there, and that really messes things up.  I need to either block it entirely or figure out a way to fire a message to users to NOT manually create sub-tasks.  

This looks like an option:  https://community.atlassian.com/t5/Jira-questions/How-to-hide-create-sub-task-button/qaq-p/2062716

But what I really want is a permission to 'create sub-tasks' that I can assign to roles.  Then users that aren't admins won't / shouldn't see the create sub-task button.  And the automation account still has permissions to create sub-tasks using workflow rules.

Is this possible?  Is there a way to create a permission tied to 'create sub-tasks' to prevent this?  Or is the only way to do this using scriptrunner per the post above?  Or is there another option I just haven't found yet?

Thanks!  Noah

2 answers

2 accepted

0 votes
Answer accepted
Noah Miles
Contributor
November 7, 2022

"The best you could do is put in an impossible validator on the create issue transition, one that validates that the user is the Automation user and blocks the issue create.  But that is ugly for the users - they lose all the data they've entered."

This might be a workable stop gap until the feature request above is released.

0 votes
Answer accepted
Nic Brough -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 2, 2022

Welcome to the Atlassian Community!

No, it is not possible.

The doc you have found is for Server, and relies on Behaviours (which won't stop people from creating sub-tasks, it just makes it a little harder because the link won't be in the menu).

Behaviours for Cloud is not (yet) capable of doing that because of the limitations Cloud imposes on it.

There are no separate permissions for creating sub-tasks, it's a flat "can create issue (or not).

The best you could do is put in an impossible validator on the create issue transition, one that validates that the user is the Automation user and blocks the issue create.  But that is ugly for the users - they lose all the data they've entered.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 2, 2022

FWIW, there is a change request to add permissions options for restricting who can create different types of issues.

https://jira.atlassian.com/browse/JRACLOUD-44557

Noah Miles
Contributor
November 7, 2022

I voted for and am following this feature request.  It is exactly what we need.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events