I developped a function that copy an issue and then modify some fields in the source issue. I can execute it manually, or from a post function.
My problem is that when I execute it from the post function, the modifications are shown in the history but I can not see them in the issue itself, event after reindexing :
And as you can see, some time after the post function, if i run the same manually, it works perfectly :
When I debug my code, it runs exaclty the same bunch of code, with exactly same values…
I also tried to put my function as the last operation in the postfunction, to be sure nothing would modify the issue after me, but this doesn’t work either.
I’m stuck with this problem, so some help would be really appreciated.
Thanks in advance for your answers.