mattermost-community / mattermost-plugin-todo

Mattermost plugin for tracking to do items
Apache License 2.0
67 stars 60 forks source link

Can't accept incoming Issue if it was first created in a Users own Todo and then reassigned to another user #208

Open zomilanovic opened 1 year ago

zomilanovic commented 1 year ago

I recently stumbled upon the situation, that when I create a Todo without assigning it right away and then add an assignment afterwards, the user receiving the message can not interact with it.

So that's how such a message looks like, missing the Won't do, Add to my list and Done (I mean the empty checkbox to instantly mark an incoming Todo as done) buttons: Screenshot 2023-06-14 at 11 39 51

Those Todos are not listed in the receiving users Todos and are shown as Accepted. On position 1. (if that was done more than once, every Todo sent this way is Accepted. On position 1. btw) in the Sent Todos of the sending user.

Sadly I couldn't figure out where exactly the problem is rooted, but I think it is somewhere around this line of code, because for some reason those "reassigned" Todos never show up in the receiving users state['plugins-com.mattermost.plugin-todo'].inIssues, but instead they can be found in the assigning users state['plugins-com.mattermost.plugin-todo'].outIssues.

If it helps in resolving this issue, on a side note, I figured out when trying to change the assignment of those Sent Todos it fails with {"error":"Unable to change the assignment","details":"reference not found"}, so maybe the actual problem is somewhere in the ChangeAssignment function.

Thanks a lot in advance and if you got any further questions I'd gladly answer them!

jufab commented 12 months ago

I think this is the same with #210 Todo display in the incoming list like that

image
wuda-io commented 2 weeks ago

Had the same problem, Todo can't be deleted or completed and hangs between users. Please fix this!!