Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Need to remove Move , Clone issue ,Convert to issue from More drop down for Bug Issue

Need to remove Move , Clone issue ,Convert to issue from More drop down for Bug Issue type. I do not want to use permission Scheme. I would like to use script runner for this issue.

2 answers

1 vote

I have to question why you don't want to use permissions for this, and also why you think there is any point in it.  What is the benefit of removing an option from a menu, one that you still want people to be able to do, and now have to cast around with fiddly url building to be able to do it?  

What do you gain from making things harder for people to find?

Hi @Garden16_  For this you have to use Script Fragment feature of Script runner. In Script Fragment use "Hide System or Plugin UI element". 

Fragment Hide.PNG

In Hide What section, select clone-issue,move-issue and subtask-to-issue (if you want to stop conversion)

Configuration.PNG

 

In Condition Block , enter the condition based on your requirement , include subtask issue type as well you want to hide Convert to Issue button from More.

import com.atlassian.jira.component.ComponentAccessor

if(jiraHelper.project?.key == "VY" && issue.issueType.name == "Bug" ) {
false
} else {
true
}

 Hope it Works for you!

Thanks,

V.Y

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

114 views 1 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you