Before banging my head much further, I have a question:
Is ScriptRunner's originalIssue valid in workflow transition's Post-function?
Reading https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-TechnicalStuffforAdvancedUsers, not sure if only available in validators.
I'm using scriptRunner to send an email in the post-function if the value of that custom text field changes. i.e. the Condition:
def cf = customFieldManager.getCustomFieldObjectByName('CSR#')
val = issue.getCustomFieldValue(cf)
oldVal = originalIssue.getCustomFieldValue(cf)
val == oldVal
The email is being email every time whether the CSR# field is changed or not. What have I done wrong this time.
C/Perl guy ;-)
After more testing, I believe that once the transition's post-functions start to be evaluated, the originalIssue equals the issue object. So in a post-function, what is the best way to trigger a post-function email generation when a custom field is changed? Have a hidden text field saving the previous value?
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG