Check watchers for null in script Runner

Raju KC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2013

How to check conditions - watchers is null or not in script Runner?

1 answer

1 accepted

0 votes
Answer accepted
Tsol
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2013

If you are using one of the built in sripts, the condition for having at least one watcher should be like:

issue.watches > 0

Modify it, in case you want to have a different number of watchers.

Suggest an answer

Log in or Sign up to answer