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