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

Make attribute read-only in RTC WorkItem Web UI but possible to update via API

 Hello ,


 I have a requirement where one of the attribute is wiki and it should be not editable from web ui for the users. But it should be possible to update from API. How to achieve this ?

Regards,
Chandan

0 votes


Accepted answer

Permanent link

I'd try to make the Editor Presentation read only, keep the attribute writable. This needs to be done for any editor presentation for the attribute.



I am not aware if the server actually knows if a call is from the API or from a user. For the server it is always a user. If the work item is read only, it is read only. This is one way I can imagine doing it. 

Another approach you could try is to remove the permission to update the attribute for all roles but one that you use for the automation API users. Not sure if that would work.

I would agree to question why have read only attributes if nothing can change them. I have not looked into this for a long time.

Chandan M B 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
× 10,938

Question asked: Oct 14 '21, 7:47 a.m.

Question was seen: 619 times

Last updated: Oct 14 '21, 8:29 a.m.

Confirmation Cancel Confirm