It's all about the answers!

Ask a question

Can i restrict the ownedby attribute using role based userlist ?


Prasad Annamdasu (15453643) | asked Jan 09 '13, 8:11 a.m.
 Hi, 

I have certain pre-defined roles in my project like Project manager, Test Lead etc. There is a certain category of workitems which need to be assigned only to a user with the role of the project manager. keeping this objective in mind created a value set (role based userlist) under attribute customization to restrict the ownedby attribute  to the list of the users who are assigned with the role of Project Manager. When i implement this condition when i checked on the web / eclipse UI it was showing the filtered list of project managers however there was also an option "more" which was allowing me to assign this workitem to anyother role. 

Is it feasible to restrict a user from assigning the workitem to any role other than Project Manager. 


One answer



permanent link
Ralph Schoon (63.3k33646) | answered Jan 09 '13, 8:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Prasad, you could do that using a custom Advisor pre-condition (Java Extension). Since JavaScript does not provide access to the user role there is no way to use JavaScript based conditions.

  • A stating point for Java Extensions: https://jazz.net/library/article/1000
  • More on work item customization (JavaScript should be online soon) https://jazz.net/library/article/1093
  • Examples for Advisors: http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/

 

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.