Hello!
It is necessary to make so that a certain group of persons could not create tasks, if the Remaining Estimate is not specified on the Create Issue form...
{code}
// I hope the ScriptRunner Behavior can resolve it, but:
def user = currentUser;
if( groupManager.isUserInGroup(user, 'jira-users')
{
def filed = getFieldByName("Remaining Estimate") // how to get RE only
field.setRequired(true); // and mark as required?
}
{code}
Hi!
For your use case, I don't think you'll actually need to do any scripting. You can use the Conditions feature of Behaviours to make the field Readonly based on if a user is in a certain group. You can do that by putting a Behaviour on the "Remaining Estimate" field and clicking "Add new condition." You'll want to choose the radio button next to the Condition that says "Current user in group" and then use the drop down menu to select the group you would like.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.