Defects Assigning Restrictions (146 Views)
Reply
Occasional Visitor
SSpam
Posts: 2
Registered: ‎12-27-2013
Message 1 of 2 (146 Views)

Defects Assigning Restrictions

[ Edited ]

Hi,

What I am trying to do:

User assigns the defect to another user. If both users are from the same group (Testers or Devs) or one of them is TL then there is no action. But if Tester group member tries to assign Defect to Dev group member, there should be a message "You can't assigne Defects to this user.".

 

Current user's group I can check using User.isInGroup(<groupname>) - but the <groupname> has to be precise. I don't know how to get it more flexible and reusable (for example in case when there will be more groups then Devs, Testers and Test Leaders). Another thing is how to get what groups member is a user with <username>. Of course I can grab <username> from Bug_Fields("BG_RESPONSIBLE").Value - but still, how to extract the group(s) name(s)?

 

Thank you for your help!

Valued Contributor
Boyan_Angelov
Posts: 18
Registered: ‎04-05-2012
Message 2 of 2 (94 Views)

Re: Defects Assigning Restrictions

Hi,

 

You may try to use some of the codes located in those examples:

http://support.openview.hp.com/selfsolve/document/KM183671

In case some of the links do not work, try to search by ID.

 

Kind regards,

Boyan

QC / ALM Support engineer.

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.