It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Access to Transient Vars in Payload to a Post Function? Edited

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.

1 answer

1 accepted

0 votes
Answer accepted

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)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

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 ...

314 views 1 3
Join discussion

Community Events

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

Events near you