Hi Team,
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.
Regards,
Kavya Janiwarda
Hi Kavya,
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?
Hello,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.