Closed SimonZein closed 1 year ago
Had to do some investigation/looking at some original notes for this one 😃
This is all a long way of saying that this lines up with your observation. You can't Reactivate an Active Incident, so the connector processes 2 of 3 changes to the Work Item in that the email is added, the attachments are added, but the commentary is not added. Now, could this be slightly improved? Probably. There is always room for improvement. The 200+ commits to the project and contributors such as yourself have proven that 😄But what I hope you can see is that SMExco just has a fundamentally different approach in this regard. But it also means your pull request actually extends itself into a few other keywords that I also believe open the door to further refinement.
So to play devil's advocate, in hopes of sparking further discussion, and seeing if there is perhaps a middle ground because the nature of your pull request would change something very fundamental about the connector. The question in my opinion becomes what is the ideal experience that offers the least amount of confusion to someone who does not understand ANY of this nuance.
Hey Adam, fully understand what you mean 😉 As for the [reactivate]keyword in the 3rd path (when the Incident is neither resolved nor closed), I have the -Action parameter set to Analyst/User Comment, so there is no visual indication for the action being performed a second time. But as far as I know our end users, they wouldn't even recognize it anyway .🙄 And our users is the reason I implemented it the way I have it now, as I receive questions like "Why is this comment not added?" and not "Why does the reactivate is present twice here"... 😅 I could write a whole paragraph about these complaints or complaints , that this is tooooo complicated and we have to change that because of our poor end users 🙈 But here we are at the point we have been spoken about so often and which makes the connector so excellent - I can just modify it to my/our needs. And I am not in any way mad if one of my pull requests does not find it's way to the base connector. These are just ideas and I fully understand that something that works for us, won't work for others - or even worse, confuses them and makes them stick to the OOTB connector 😖
Let's say we have:
Therefore an additional "[$reactivateKeyword]".... is needed in all 3 switch-case statements of the Update-WorkItem (when the WorkItem is an IR).
Maybe this behaviour, as it is now, is desired and it shall not be added as action log. If that's the case, please just ignore this pull request :)