I'm trying to restrict custom field "Story Points" editing to few and should be read-only to all other users.
For this, under behaviors, created a behavior >> mapped to required project >> under field selected "Story Points" >> and added exception to be written for few users.
By doing so I was able to make it read-only for all users except the users I mentioned in the condition. But the inline editing is still accessible to all the users. How to fix that?
Can we use script conditions for each transition? If so, can you help in improving the script?
def storypoints = getFieldById("Story Points")
if(currentUser.name("username")){
getFieldById("Story Points").setReadOnly(false)
}else{
getFieldById("Story Points").setReadOnly(true)
}