JS Approvals
Accepted answer
![](http://jazz.net/_images/myphoto/d7b72ce3f07a334bf9c40f9605deb573.jpg)
Comments
![](http://jazz.net/_images/myphoto/d7b72ce3f07a334bf9c40f9605deb573.jpg)
Thought so :( Tnx
![](http://jazz.net/_images/myphoto/e5e63d5878217b64611c1df9401b7cd3.jpg)
You could use Java insted. See https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/
![](http://jazz.net/_images/myphoto/e5e63d5878217b64611c1df9401b7cd3.jpg)
Thinking again, approvals are not attribute based, so you will probably have no luck with a value provider and will have to use other techniques like this: https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/
![](http://jazz.net/_images/myphoto/d7b72ce3f07a334bf9c40f9605deb573.jpg)
I was looking to set read only on certain fields if work item is approved.
![](http://jazz.net/_images/myphoto/e5e63d5878217b64611c1df9401b7cd3.jpg)
I have not tried that. You could try if you can implement a condition in Java similar to https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ and if that works for you. I tried this approach and it worked for me for roles, which you can also not access in JavaScript.
![](http://jazz.net/_images/myphoto/d7b72ce3f07a334bf9c40f9605deb573.jpg)
Will try that. Hope it will work.