I am trying to write a post function using script runner to add watchers to the issue when created depending on components.
I was able to get the watchers to be added but i am not able to get a condition check with component working. How do i get a list of components for the issue and then define a user list to be added as watchers.