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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.