It's all about the answers!

Ask a question

Prevent editing/Read only Approvals section(Approval Presentation) on particular state of the Workitem


Supriya Kavade (155) | asked Apr 24 '19, 7:26 a.m.
edited Apr 26 '19, 1:21 a.m.

 Hello,


I want to write Adviser plugin, where i need to prevent editing/ Read only of Approvals section in Workitem on particular workflow state. I have source code for prevent editing workitem on particular state. But here requirement is prevent editing of the Approval section only. 

anybody have an idea related to this.

Thanks! 

Accepted answer


permanent link
Ralph Schoon (63.1k33646) | answered Apr 26 '19, 1:31 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 26 '19, 1:47 p.m.
Custom Advisor can only prevent saving and not make read only (the built in advisors "Read Only"..... use a hardwired mechanism that can not be extended.)

A custom advisor (here API examples: https://rsjazz.wordpress.com/?s=advisor&submit=Search , you want work item save advisors.) would have to check if a new approval has been added in the state and prevent saving the work item in this case. Here some hints to the approval API: https://rsjazz.wordpress.com/?s=approval&submit=Search

Approval is also not a real attribute, but a collection. I doubt you can make it read only.
Supriya Kavade selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.