How can we update a custom field value based on the previous status of an issue in the post function?
For example: Here the custom field is a select list single choice type, we have to update this field to a value "1" whenever it transitions from some X status.
Again need to update the field to value "2" if it transitioned from Y status via postfunction.
Let me know how to implement this.
Maybe I am not understanding correctly, but you have a workflow that goes from Status X to another status, and you have a transition that goes from Status Y to the same status or another one?
Why can't you just set a post function each transition to set the value of the field?
this can be quite hard to do.
Once I did something with scriptrunner using the history of the issue. It was really hard to do and to be honnest it wasn't perfect.
We finished by using a customfield to hold the value in an array that we dont show on ticket). It was very ugly but functional.
Hope this help
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
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