In a jira project I set with the security level the possibility of opening "private tasks" and "everyone's tasks". Private tasks can be viewed and managed only by the reporter and the assignee (therefore two users at a time). Public are visible and manageable by all users of the project. To do this, I worked both on the authorization scheme and on the project security scheme. However, there is a case that I am unable to set, the task must be able to be seen only by some users of the Project and not by all, but also by users who are not reporters or assignees: a task therefore "restricted access". So I thought about choosing the @mentioned users, but I don't know how to give them the possibility to see the tasks in the safety schemes of the Projects. This is important in order to manage common projects but where there are tasks that can only be managed by some project users who are not known in advance. Can you help me understand how to do it?
Most of the APIs for interacting with custom project properties are in the com.atlassian.core.ofbiz.util package.
The OFBizPropertyUtils class has a getPropertySet method (and more preferred getCachingPropertySet method) that retrieves those sort of values. I've yet to find an example for getting the GenericValue argument that doesn't utilize a deprecated method at some level, so you might prefer the other method signature that takes a string and a long.
If not, the Project class has a deprecated getGenericValue() method that you can use to retrieve the needed Generic value argument. There's also GenericDelegatorUtils class, which can get you a GenericDelegator with. From there,
def gv = genericDelegator.findByAnd("Project", ["id": projectId as Long])?.first()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.