Forums

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

How to hide create sub-task button?

Jira User June 24, 2022 edited

Hi everyone,

 

I want to hide create subtask button just one project. 

Can I solve it using Scriptrunner?

if yes, how can i solve it?

 

I am waiting for your answers.

Thanks for everything

2 answers

1 accepted

2 votes
Answer accepted
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 24, 2022

Hi @Jira User  Welcome to Atlassian Community!

You can hide Subtask using , Script Fragment feature of Script Runner plugin : 

In Script Fragment >> Create Fragment >> Select Hide UI system or Plugin UI element >> Hide What select "com.atlassian.jira.plugin.system.issueoperations:create-subtask" and apply condition as per your requirement. 

 

Script Fragment.PNG

Jira User June 24, 2022

button1.png Thanks for answer, but I did what you shared. I want to hide the button in the image

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 24, 2022

Hi @Jira User  This subtask section is only visible when Parent issues is having any subtask/s.  

If Parent issues is having zero subtask then this section won't visible.

Use "com.atlassian.jira.jira-view-issue-plugin:view-subtasks" to hide Subtask section. 

 

Thanks

V.Y

Like • Jira User likes this
Jira User June 25, 2022

Thank you so much @Vikrant Yadav 

Like • Vikrant Yadav likes this
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 25, 2022

Cool! Glad to hear it works for you. 

Bogdan Gorka
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 26, 2022

If you want to disable the sub-task creation in the Epic type issue, then use other properties (in red frame)

screen-fragments.png

Like • 2 people like this
1 vote
Sam Nadarajan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 24, 2022

Hello @Jira User  and welcome to the Community!

The ability to create a subtask depends on whether there are any sub-task issue types in your project's issue type scheme. I would check the issue type scheme for your project and remove any sub-task issue types. For example, in a Jira instance I have the following sub-task issue types:

Screen Shot 2022-06-24 at 8.46.30 AM.png +

If any of these issue types were in my project's issue type scheme, the ability to create a sub-task would be there. If none of these are included in my project's issue type scheme, then the ability to create a sub-task shouldn't be there. You shouldn't need to do anything extra in Scriptrunner to achieve your objective.


Hope this helps!

Jira User June 24, 2022

Thanks for your answer

 

I have to use sub-task issue type. I'll just hide the buttonbutton1.png

Sam Nadarajan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 24, 2022

Hello,

Could you explain your use case a little further so I can better understand? I am not understanding yet why you would want to use sub-tasks but hide the ability to create them.

Jira User June 24, 2022

There is another app that i use for flows: It automatically creates  sub-task to jira. For this reason I have to use sub-task, but I want to hide this button to prevent other users from creating sub-tasks according to their wishes.

Suggest an answer

Log in or Sign up to answer