We are using JIRA 7.3.6 Data Center Edition. We have a Service Desk project set up. We have configured a Hipchat Integration between this project and a Hipchat room.
We want to post a message in the Hipchat room when the last comment entered on the issue is authored by a specific user. We are using the Adaptivist Scriptrunner code in our JQL thus:
issueFunction in lastComment("by cloudplatform")
The "cloudplatform" user is currently posting an Internal comment on the issues. We want the Hipchat notification to occur just when that comment is made.
The Hipchat notification is occurring when that comment is made. However, it also occurs again when another comment is added - a customer-visible comment. That should not be happening since that new, last comment is not authored by "cloudplatform".
Has anybody else run into this issue? I haven't found any reports of it in my searches through google.
I think this is a limitation of how Scriptrunner is determining last comment. Granted Service Desk does have a different way of handling comments as opposed to other Jira project types. But at the moment, it does not appear that Scriptrunner can currently do this. But from looking at their bug tracker, it looks like this is a known limitation and there exists bug/feature request for this in https://productsupport.adaptavist.com/browse/SRJIRA-2132
I would recommend watching/voting for this on their tracker.
In the meantime, I would be interested to see if perhaps there is an existing alternative solution. For example, perhaps there is another plugin to Jira that provides a different JQL function, maybe something like JQL Tricks. I know this has a function called commentedByUser([User]) but I don't know for sure if this would suffer the same limitation as scriptrunner here, or not.
Thank you for finding that issue, Andrew, and providing the link.
We do not have the JQL Tricks plugin, and we are not currently interested in adding another plugin to our environment for this one use case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.