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

Can i restrict the ownedby attribute using role based userlist ?

 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. 


0 votes



One answer

Permanent link
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/

 

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
× 6,130

Question asked: Jan 09 '13, 8:11 a.m.

Question was seen: 5,000 times

Last updated: Jan 09 '13, 8:22 a.m.

Confirmation Cancel Confirm