Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 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! 

0 votes


Accepted answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 460

Question asked: Apr 24 '19, 7:26 a.m.

Question was seen: 1,940 times

Last updated: Apr 26 '19, 1:47 p.m.

Confirmation Cancel Confirm