My goal is to see whether I can determine the name of either the previous or next status from within the Post Function groovy script. I'm hoping that it might be derived from the payload passed to the Post Function or that it can be retrieved from the issue itself.
I'm guessing that I'd need to know the name of the workflow as well.
Code examples would be extremely helpful.
Thank you, in advance.
The issue object that a post-function has access to is a "mutable issue" - it contains a reference to the current issue (meaning, the data that is on it now), and any new values that should be going to update the issue (it's passed validation, there may be new data other than the target status)
https://docs.atlassian.com/software/jira/docs/api/8.4.0/index.html?com/atlassian/jira/issue/fields/AssigneeSystemField.html should be a starting point (apologies for assuming "latest version" if that's not right)
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.