JQL function membersOf() is working fine when I use it to search issues on the Search page, but the same is not working as expected when I use it in the webhook JQL.
My filter uses JQL field "watcher".
Eg: watcher in membersOf("devops-team-members")
Any idea?
Maybe permissions problem? What user is invoking the webhook?
@Martin Bayer _MoroSystems_ s_r_o__ I don't see any permissions problem here. I have administrator access and I created this webhook for the events - issue created & updated. Also, I checked this webhook using another JQL filter "watchers = 2" and it worked fine and only on the subset of issues where the watchers count is 2 as expected. So, no permissions issue here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Yuvaraj M can you describe your webhook? What event is raising it? What is the configuration?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Martin Bayer _MoroSystems_ s_r_o__My webhook sends details about the issues to an external web application when an issue is created or updated. This webhook should work only on the issues where a watcher is part of this group - "devops-team-members". No additional configuration on this webhook.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is really weird. @Yuvaraj M did you test both create and update operation? Maybe during Create operation, the watchers are set after webhook is invoked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Martin Bayer _MoroSystems_ s_r_o__Yes, I tested both create and update operation. I think what you said for the create operation looks like a valid point.
In the case of update operation, the watcher is already available on the jira issue, but the webhook is not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.