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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,570
Community Members
 
Community Events
184
Community Groups

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 09, 2022

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?

1 vote
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.
Jan 09, 2022

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
AUG Leaders

Atlassian Community Events