Forums

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

How can I disable the menu options for 'Create sub-task' and 'Convert to sub-task'?

Dimitar I_ Dimitrov
Contributor
May 25, 2018

Hey guys,

I am working in Jira Service Desk on some issues of type 'incident'. In the 'More' section in the form, by default I see two options 'Create sub-task' and 'Convert to sub-task'. Is there a way for me to remove them only for that specific issue type (so that they do not show for Incident, but they do show for Change for example). Has anyone done this already?

Thanks!

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Ojase
Contributor
May 25, 2018

We can do this using Adaptavist ScriptRunner plugin to block creation of subtasks based on issuetype.

Create a separate workflow for subtasks in your project. Add a 'simple scripted validator' on the subtask issue workflow create transition to block creation of subtasks for particular parent issue types.

For example;

issue.getParentObject().getIssueTypeObject().getName() != 'Incident'

Will block creation of subtasks for all parent issue types of 'Incident' 

Dimitar I_ Dimitrov
Contributor
May 25, 2018

Thanks. it's a valid workaround:)

Austin E
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 24, 2019

I'm going to necro this thread to note that the above suggestion works great for preventing users from using More > Create Sub-Task. However, it does not prevent users from using More > Convert to Sub-Task, even if the target parent issue is of an issue type that you've excluded using the scripted validator.

Like • Vadim Sakhray likes this
0 votes
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.
May 25, 2018

There's no way to remove the option without doing some coding, but @Ojase has given you a really good way to stop the users doing the wrong thing.

ramonde zrihen December 23, 2020

hi @Nic Brough -Adaptavist- : can you please provide/guide how it can be done ? thanks !

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.
December 23, 2020

You will need to write a new app for Jira, one that can hide options from the users.

I would question why you want to do this though.  Why can't you trust your users not to convert items when they shouldn't?

ramonde zrihen December 23, 2020 edited

thank you for answering @Nic Brough -Adaptavist- 

converting sub task process  allows all issue Types to be parent of sub task i.e. epic and bug,  i thought using  hide UI elements concerning convert  to sub-task + adding a script handling cases of which it  can be achieved i.e. parent can be only task etc' else to stop convert process

 

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.
December 23, 2020

But why?  Why are you trying to stop your people doing this? 

What is broken in your processes that they think they want to do the wrong thing?