I recently had a requirement that certain workflow transitions should fail if the assignee is one of three specific users.
Note that using this method, any number of accounts can be checked.
I am using the JMWE-provided build-your-own scripted validator, using this simple code:
let bad_users = ["abcdabcdabcdabcd", "1234567890abcdef", "0987654321abcdef"];
!!issue.assignee && !bad_users.includes(issue.assignee.accountId)
The secret that many admins are not aware of is that you can have multi-line code, using the ';' delimiter before the newline.
This works like a charm.
Amir Katz (Outseer)
Technical Lead
Outseer, an RSA company
Israel
21 accepted answers
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
8 comments