but it doesnt work the same way in a webhook.
project = jcd and issuetype = Homepage and comment ~ "rumba" AND issueFunction in lastComment("before 1m") AND issueFunction in lastComment("after -1m")
the above search only finds comments with the word "rumba" in them. And are only a minute old. this is great because it reduces noise in the communication channels such as MS teams or slack. Unfortunately, it doesnt work the same way when applied to a webhook. Do webhooks recognize scriptrunner's added jql functionality?
Thoughts?
THanks.
According to developer documentation for webhooks they are executed "without a specific user context".
My guess is that the scriptrunner issueFunction (at least the lastComment function) requires this context and fails silently when executed within the webook.
You can try to just use "updated > -1m" since commenting on an issue by default also causes the associated issue updated to be refreshed.
bare with me please. So do you mean scrap the sql that I mentioned or add the updated > -1m to it? thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The final result would look something like this:
"project = jcd and issuetype = Homepage and comment ~ "rumba" and updated > -1m"
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.