Hi:
What's the most elegant way to accomplish the following in GSR:
I have a half-assed solution in place using GSR, but I have no clue how to accomplish the "send only one mail per each time "Needs QA" gets set to "Yes"" part.
As a result, QA is getting email for every issue update after "Needs QA" gets set to "yes", because my solution sees every issue update as an update in which "Needs QA" is set to "yes". I want to have the script somehow recognize "oh, I've already sent mail once, I don't need to do it again".
For listeners, you can AND your check of the custom field with:
changeItems.any {it.get('field')=='Needs QA'}"
ie, so the value is Yes, AND the value was changed in this transition.
Or move it to a workflow function as Henning says, which will be easier for you and might be more clearer for the users.
You know I love you, but I think Henning's idea is the right one for this application.
However, I still have a stupid question for you!
When formatting the email to be sent, how do I:
I am currently doing this godawful thing, which provides a working line break but terrifies me:
<p> <% if (componentManager.getCommentManager().getComments(issue)) out << "The most recent comment on the issue was: <p><i>" << componentManager.getCommentManager().getComments(issue).last()?.body %> </i> <p>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree Henning's answer is the right way to go ;-)
If using html format you need to use <p> or <br>... if using text format you can just use a newline - "\n".
You may get mismatched tags the way you have it now but shouldn't cause major problems... otherwise just add << "</i></p>" after the .body bit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
what about removing the Needs QA field from the edit screen and make it only editable through a global transition (cyling back to the current status)?
Than you have two possible solutions:
Henning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome, Henning. This is exactly the way we want to go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will need to check the history of the issue , If the value of "Needs QA" is changed from No to yes then an custom event can be fired , on this event email will be sent to the required group from notification scheme .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.