It's all about the answers!

Ask a question

How to check if a work item is in read only mode ?


Sudipto Sarkar (631443) | asked Jun 27 '16, 8:50 a.m.
edited Jun 27 '16, 8:51 a.m.
Hi Guys,

How to check if I have the read/write access to a work item ?

What I am trying to do..?

I am trying to add tags to a work item through java. RTC doesn't give me any error. It just doesn't update that field when I see it in the web UI. But when I try to modify it in the web UI, it does mention an error saying I have only read access to it.

This use case can happen when "User is just a member of the project area without any roles in that team area the work item belongs to".

I feel detection of read/write access to a work item would solve my problem.


Any suggestions...?

Accepted answer


permanent link
Ralph Schoon (63.6k33647) | answered Jun 27 '16, 9:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 27 '16, 9:42 a.m.
There is nothing like a read only mode for work items as such. There are some mechanisms to prevent you from changing data. Which one might be clearer if the error message in the Web UI, especially the details where provided here. Mechanisms I would be aware are missing permission to save and modify work item attributes due to the role. Read only attributes should prevent you from even entering data.
Sudipto Sarkar selected this answer as the correct answer

Comments
Sudipto Sarkar commented Jun 27 '16, 11:59 p.m.

Hi Ralph,
Thanks for your response. Sorry I was unaware of that.
As you said I do not have permission to save the work item. How do I detect it ?

Regards,
Arshad


Sudipto Sarkar commented Jun 28 '16, 2:07 a.m.

Got it. Checked the save status.

One other answer



permanent link
Ralph Schoon (63.6k33647) | answered Jun 28 '16, 2:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.