You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
We are using the following script runner validator for 'Create' transition to restrict issue creation to users who are not part of SG_Jira-RND_Users JIRA group. This is working fine for creation issue. However, the same validator is preventing users outside this group to clone the issue. Can someone suggest or modify this script so that it allows clone issue to all users and create issue only to that particular group mentioned above ?
import com.atlassian.jira.component.ComponentAccessordef groupManager = ComponentAccessor.getGroupManager()groupManager.isUserInGroup(issue.reporter?.name, 'SG_Jira-RND_Users')
The problem that you have is that create permissions are required for both creating and cloning issue, so it would not be possible to use this validator if you do not want to restrict cloning issues from that particular project.
However, we have a new feature, comming up within our "Clone Issue" script that will be able to set a new field named "As user" which will allow a funtionality like you describe, since another user could use that field to clone the issue as a user that has permissions to do so.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.