Hello,
You can not grey out a filed in a post funciton because post-function works after you executed your request to Jira.
If you have Adaptivist Scriptrunner and you are not on Cloud, you could use behaviours
https://scriptrunner.adaptavist.com/5.2.4/jira/behaviours-overview.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.