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)
Learn how to use two new reports for next-gen projects in Jira Cloud: Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events