We are looking for the ability to create a notification to both JIRA and non JIRA users when a comment is made during a specific part of a workflow. It doesn't matter who makes the comment, but just that is it updated at a specific state.
We do not have JIRA Service Desk so Automation on comment to trigger a notification is not possible, but is this something that could be potentially acheieved using ScriptRunner?
Cheers
Steve
Hi Steven,
What kind of notification do you want to provide? For an email notification you can use the 'Send a custom email' scripted listener.
Yours,
Joanna Choules, Adaptavist Product Support
Hi Joanna,
Thank you for your response,
Basically we are looking for an email notification, but solely on a comment at specific status, not on a transition of a status, so would this be inline with "Sending an email from an non-issue event?
Cheers
Steven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thinking about this further which could potentially be easier, because we have users who do not have the "transition" permission, does script runner have the functionality to transition on a comment, rather than trigger an email. If we were able to use Scriptrunner to be able to transition once a comment has been added, we could use a notification scheme on the transition.
We do not have the automation that comes with JSD, so this is a workaround of that.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steven,
Yes, you could use a fast-track transition listener to transition the issue in response to an Issue Commented event.
Joanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joanna,
Thank you, this looks like the thing I was looking for, I can't see transition on a comment though, I have gone through the examples on the post function and the document sent but still unfortunately unable to clarify it.
Steven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steven,
Fast-tracking is available as a listener as well as a post-function - in this case, the listener version is the one you want. When configuring the listener, you can select the events it should trigger on in the Events field of the config.
Joanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Afternoon,
We have ran through and tried to create it in the Listeners for "Send a custom email", going back to the original query I had, rather than transition.
Event - Issue Commented
Condition and Config
issue.getStatus() == "Information Received"
--------------------------------------------
We are getting no failures on the executions, however we are not receiving the triggered emails, Can you see anything wrong with this?
Cheers
Steven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steven,
issue.getStatus() returns a Status object rather than a String, so comparing it with a string will always produce false. You can use issue.getStatus().getName() to get the human-readable name of the status as a string.
Joanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect!!!!
Looks like we have been able to cover everything off. Thanks for your help on the issue.
Steven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With regards to the Email Template field, we have had a look and are looking to general the email template with;
However at the minute we are just retuning errors, do you have any additional information around this?
Steven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steven,
This is probably better served at this point by raising a support ticket - please include as much detail there as you can about what specific errors you're encountering.
Joanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Joanna,
I have raised SRJSUP-8126 as per the request.
Thanks for you assistance with this
Steven
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.
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.