It's all about the answers!

Ask a question

script to validate role when assigning the defect


Glenn N (11116) | asked Apr 13 '16, 1:55 p.m.

Is there a way if for example a defect is Resolved by developer, can we prevent them in moving to the next status if the owned by is set to the tester?The reason is because the tester don't have permission to move from Resolved to Deployed so they should not be assigning it to QA yet.

One answer



permanent link
Ralph Schoon (63.3k33646) | answered Apr 14 '16, 6:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The only consistently working solution of requirements like this is a work item save advisor/precondition. See https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ for getting started. See several advisor examples https://rsjazz.wordpress.com/?s=advisor.

Here is code to look for roles: https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/

Note: JavaScript does not allow you to find the role of a user.

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.