How to restrict visibility and access to categories programmatically?
Accepted answer
Comments
Thanks Ralph but unless I've misunderstood something this doesn't really address the problem; I'd still have to manually create an access group that maps to the team and then drive the access control from the work item creation. This is no better than manually setting the category attribute.
I'll give it some more thought but at the moment I think my best option is to create the create the work items then manually adjust the category as above, as this will ensure any work items created subsequently via the client will have their visibility limited.
No, as stated there is only the built in category based stuff and that works as it works. If you what something else, you have to do it manually, or create your own custom automation. There is no free lunch.
And, by the way, if you try to use the category based read access you have to start creating categories for the purpose and that does not get any better or easier.
Comments
Berthold Kröger
Sep 03 '15, 8:27 a.m.As far as I know, there is no way to do this in RTC 4.. But will there be an API function in RTC 5. or RTC 6.*?
Regards,
Berthold
Cliff Gardiner
Jan 01 '17, 11:43 a.m.This post shows how to set the visibility but I have yet to find a way to set the 'restrict work item access' attribute. I have been using the RTC 4.0.7 SDK and just recently the 6.0.3 client SDK, and that functionality is still not available as far as I can see.
I'm trying to automate a process along these lines: create team, create WI category, associate team with category, if team's work will be sensitive then restrict access, create work items, etc ... so if there's a way to do this then I'd like to know.
Can anyone enlighten us?
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 02 '17, 4:43 p.m.With respect to the SDK, https://rsjazz.wordpress.com/2016/02/02/setting-access-control-permissions-for-work-items/ explains the avilable API's, including how to set the restricted access attribute (in 6.0.x) and you can also create access groups which you can then set as context, provided you have the required permissions.